misc: fastrpc: Fix double free of 'buf' in error path
Summary
| CVE | CVE-2024-46741 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-09-18 08:15:03 UTC |
| Updated | 2026-08-27 13:16:32 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix double free of 'buf' in error path smatch warning: drivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf' In fastrpc_req_mmap() error path, the fastrpc buffer is freed in fastrpc_req_munmap_impl() if unmap is successful. But in the end, there is an unconditional call to fastrpc_buf_free(). So the above case triggers the double free of fastrpc buf. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-415
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 13327ed95222e70fa98805382b65636b872d87cb 4753cc37b6606ef9a7ec22861d380d45e2707f9a git | Not specified |
| CNA | Linux | Linux | affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 f77dc8a75859e559f3238a6d906206259227985e git | Not specified |
| CNA | Linux | Linux | affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 bfc1704d909dc9911a558b1a5833d3d61a43a1f2 git | Not specified |
| CNA | Linux | Linux | affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 e8c276d4dc0e19ee48385f74426aebc855b49aaf git | Not specified |
| CNA | Linux | Linux | affected 911737ad0c860251f640a05feb75f9dc7e41f0d7 git | Not specified |
| CNA | Linux | Linux | affected b10e064ca0f708c4b4401ac5eab0f76cf7cec93d git | Not specified |
| CNA | Linux | Linux | affected 5.10.267 5.11 semver | Not specified |
| CNA | Linux | Linux | affected 5.15.218 5.16 semver | Not specified |
| CNA | Linux | Linux | affected 6.2 | Not specified |
| CNA | Linux | Linux | unaffected 6.2 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.51 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.10.10 6.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.11 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.