CVE-2024-46741: misc: fastrpc: Fix double free of 'buf' in error path
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 fastrpcreqmmap() error: double free of 'buf'
In fastrpcreqmmap() error path, the fastrpc buffer is freed in fastrpcreqmunmapimpl() if unmap is successful.
But in the end, there is an unconditional call to fastrpcbuffree(). So the above case triggers the double free of fastrpc buf.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46741?
CVE-2024-46741 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-46741?
To fix CVE-2024-46741, you should update the Linux kernel to the latest patched version provided by your distribution.
Which versions of the Linux kernel are affected by CVE-2024-46741?
CVE-2024-46741 affects Linux kernel versions from 6.2 up to 6.6.51 and from 6.7 to 6.10.10 as well as several release candidates of 6.11.
What impact does CVE-2024-46741 have on system security?
CVE-2024-46741 can lead to potential denial of service conditions due to incorrect memory handling in the fastrpc subsystem.
Is there a specific patch for CVE-2024-46741 available?
Yes, patches for CVE-2024-46741 have been released in recent updates, and users should apply these updates to secure their systems.