# CVE-2024-46741: misc: fastrpc: Fix double free of 'buf' in error path

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-09-18T07:12:02.496Z
- Modified: 2026-08-27T13:16:32.990Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 13327ed95222e70fa98805382b65636b872d87cb before 4753cc37b6606ef9a7ec22861d380d45e2707f9a; from 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 before f77dc8a75859e559f3238a6d906206259227985e; from 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 before bfc1704d909dc9911a558b1a5833d3d61a43a1f2; from 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2 before e8c276d4dc0e19ee48385f74426aebc855b49aaf; 911737ad0c860251f640a05feb75f9dc7e41f0d7; b10e064ca0f708c4b4401ac5eab0f76cf7cec93d; from 5.10.267 before 5.11; from 5.15.218 before 5.16; 6.2 (not affected: before 6.2; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.2 before 6.6.51; from 6.7 before 6.10.10; 6.11

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a>
- <https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e> (patch)
- <https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2> (patch)
- <https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf> (patch)

## Sources

- CVE List: [CVE-2024-46741](https://www.cve.org/CVERecord?id=CVE-2024-46741), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2024-46741](https://nvd.nist.gov/vuln/detail/CVE-2024-46741), Public domain, modified 2026-08-27

---

Page: https://cve.day/CVE-2024-46741 · Whole record: https://cve.day/CVE-2024-46741.json · Rebuilt by cve.day 2026-11-25T22:58:45.548Z
