CVE-2024-40913
HIGHLinux Kernel 5.19-6.1.95 6.2-6.6.35 6.7-6.9.6 - Use-After-Free in Cachefiles Anonymous FD Handling
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: cachefiles: defer exposing anon_fd until after copy_to_user() succeeds After installing the anonymous fd, we can now see it in userland and close it. However, at this point we may not have gotten the reference count of the cache, but we will put it during colse fd, so this may cause a cache UAF. So grab the cache reference count before fd_install(). In addition, by kernel convention, fd is taken over by the user land after fd_install(), and the kernel should not call close_fd() after that, i.e., it should call fd_install() after everything is ready, thus fd_install() is called after copy_to_user() succeeds.
References (5)
Core 5
Core References
Scores
CVSS v3
7.8
EPSS
0.0029
EPSS Percentile
20.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-416
Status
published
Products (15)
linux/Kernel
5.19.0 - 6.1.95linux
linux/Kernel
6.2.0 - 6.6.35linux
linux/Kernel
6.7.0 - 6.9.6linux
Linux/Linux
< 5.19
Linux/Linux
5.19
Linux/Linux
6.1.95 - 6.1.*
Linux/Linux
6.10
Linux/Linux
6.6.35 - 6.6.*
Linux/Linux
6.9.6 - 6.9.*
Linux/Linux
c8383054506c77b814489c09877b5db83fd4abf2 - 4b4391e77a6bf24cba2ef1590e113d9b73b11039
... and 5 more
Published
Jul 12, 2024
Tracked Since
Feb 18, 2026