CVE-2024-40913
Last modified
CVE-2024-40913 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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(). EPSS estimates a 0.29% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.19, < 6.1.95 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.35 | — |
| Linux | Linux Kernel | >= 6.7, < 6.9.6 | — |
| Linux | Linux Kernel | 6.10 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-40913?
How severe is CVE-2024-40913?
How do I fix CVE-2024-40913?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-40908In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40909In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-4091The Responsive Gallery Grid WordPress plugin before 2.3.15 d…3.5
- CVE-2024-40910In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40911In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40912In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40914In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40915In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40916In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40917In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-40918In the Linux kernel, the following vulnerability has been re…6.3
- CVE-2024-40919In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-40913?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
