{"api_version":"1","generated_at":"2026-09-10T01:13:55+00:00","cve":"CVE-2024-46741","urls":{"html":"https://cve.report/CVE-2024-46741","api":"https://cve.report/api/cve/CVE-2024-46741.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-46741","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-46741"},"summary":{"title":"misc: fastrpc: Fix double free of 'buf' in error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Fix double free of 'buf' in error path\n\nsmatch warning:\ndrivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf'\n\nIn fastrpc_req_mmap() error path, the fastrpc buffer is freed in\nfastrpc_req_munmap_impl() if unmap is successful.\n\nBut in the end, there is an unconditional call to fastrpc_buf_free().\nSo the above case triggers the double free of fastrpc buf.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-09-18 08:15:03","updated_at":"2026-08-27 13:16:32"},"problem_types":["CWE-415"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a","name":"https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2","name":"https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e","name":"https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf","name":"https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-46741","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46741","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 13327ed95222e70fa98805382b65636b872d87cb 4753cc37b6606ef9a7ec22861d380d45e2707f9a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 f77dc8a75859e559f3238a6d906206259227985e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 bfc1704d909dc9911a558b1a5833d3d61a43a1f2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 e8c276d4dc0e19ee48385f74426aebc855b49aaf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 911737ad0c860251f640a05feb75f9dc7e41f0d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b10e064ca0f708c4b4401ac5eab0f76cf7cec93d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.267 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.218 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.51 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.10.10 6.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.11 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"46741","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-46741","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-09-29T14:50:16.910976Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-09-29T14:50:31.769Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/misc/fastrpc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"4753cc37b6606ef9a7ec22861d380d45e2707f9a","status":"affected","version":"13327ed95222e70fa98805382b65636b872d87cb","versionType":"git"},{"lessThan":"f77dc8a75859e559f3238a6d906206259227985e","status":"affected","version":"72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2","versionType":"git"},{"lessThan":"bfc1704d909dc9911a558b1a5833d3d61a43a1f2","status":"affected","version":"72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2","versionType":"git"},{"lessThan":"e8c276d4dc0e19ee48385f74426aebc855b49aaf","status":"affected","version":"72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2","versionType":"git"},{"status":"affected","version":"911737ad0c860251f640a05feb75f9dc7e41f0d7","versionType":"git"},{"status":"affected","version":"b10e064ca0f708c4b4401ac5eab0f76cf7cec93d","versionType":"git"},{"lessThan":"5.11","status":"affected","version":"5.10.267","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.218","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/misc/fastrpc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.51","versionType":"semver"},{"lessThanOrEqual":"6.10.*","status":"unaffected","version":"6.10.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.11","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.51","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.10.10","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.11","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.267","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.218","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Fix double free of 'buf' in error path\n\nsmatch warning:\ndrivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf'\n\nIn fastrpc_req_mmap() error path, the fastrpc buffer is freed in\nfastrpc_req_munmap_impl() if unmap is successful.\n\nBut in the end, there is an unconditional call to fastrpc_buf_free().\nSo the above case triggers the double free of fastrpc buf."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only via `ioctl(FASTRPC_IOCTL_MMAP)` on the `/dev/fastrpc-*` misc device node, requiring local access to the system. No network or remote peer input reaches this path.\nAC:L - The attacker deterministically forces the error path by passing a read-only user mapping as `argp`, so `copy_from_user()` succeeds but the final `copy_to_user()` returns `-EFAULT`, and the subsequent DSP munmap of the just-mapped buffer always succeeds — no race or uncontrolled condition is involved.\nPR:L - The fastrpc driver contains no `capable()` or `CAP_*` checks on any path to `fastrpc_req_mmap()`; any local user able to open the fastrpc device node (routinely granted to unprivileged applications on Qualcomm Android/embedded/laptop systems) can trigger it.\nUI:N - The attacking process performs the entire sequence itself with two ioctls and its own memory mapping; no action by another user or victim is required.\nS:U - The corruption is confined to the kernel's own slab and DMA/CMA allocators within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - The second `fastrpc_buf_free()` reads `buf->dev/size/virt/phys` from freed slab memory, and the duplicated `dma_free_coherent()` releases pages that remain mappable to userspace via this driver's dma-buf `.mmap`, allowing an attacker-mapped page to be re-issued to another kernel consumer and read — an arbitrary kernel-memory disclosure primitive.\nI:H - A same-object double free poisons the SLUB freelist so the same chunk is handed out to two owners, yielding overlapping-object heap corruption and, together with the still-mapped doubly-freed DMA pages, an arbitrary kernel write suitable for privilege escalation.\nA:H - Even without successful exploitation the double free corrupts the slab and page allocators, and on kernels with SLUB debugging or freelist hardening it trips an immediate BUG, causing a kernel panic that any local user can trigger at will."}]}],"providerMetadata":{"dateUpdated":"2026-08-27T12:39:34.666Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a"},{"url":"https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e"},{"url":"https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2"},{"url":"https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf"}],"title":"misc: fastrpc: Fix double free of 'buf' in error path","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2024-46741","datePublished":"2024-09-18T07:12:02.496Z","dateReserved":"2024-09-11T15:12:18.263Z","dateUpdated":"2026-08-27T12:39:34.666Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-09-18 08:15:03","lastModifiedDate":"2026-08-27 13:16:32","problem_types":["CWE-415"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-09-29T14:50:16.910976Z","id":"CVE-2024-46741","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.51","matchCriteriaId":"E4529134-BAC4-4776-840B-304009E181A0"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.10.10","matchCriteriaId":"ACDEE48C-137A-4731-90D0-A675865E1BED"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*","matchCriteriaId":"8B3CE743-2126-47A3-8B7C-822B502CF119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*","matchCriteriaId":"4DEB27E7-30AA-45CC-8934-B89263EF3551"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:*","matchCriteriaId":"E0005AEF-856E-47EB-BFE4-90C46899394D"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:*","matchCriteriaId":"39889A68-6D34-47A6-82FC-CD0BF23D6754"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:*","matchCriteriaId":"B8383ABF-1457-401F-9B61-EE50F4C61F4F"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.11:rc6:*:*:*:*:*:*","matchCriteriaId":"B77A9280-37E6-49AD-B559-5B23A3B1DC3D"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"46741","Ordinal":"1","Title":"misc: fastrpc: Fix double free of 'buf' in error path","CVE":"CVE-2024-46741","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"46741","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Fix double free of 'buf' in error path\n\nsmatch warning:\ndrivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf'\n\nIn fastrpc_req_mmap() error path, the fastrpc buffer is freed in\nfastrpc_req_munmap_impl() if unmap is successful.\n\nBut in the end, there is an unconditional call to fastrpc_buf_free().\nSo the above case triggers the double free of fastrpc buf.","Type":"Description","Title":"misc: fastrpc: Fix double free of 'buf' in error path"}]}}}