CVE-2024-47674
Last modified
CVE-2024-47674 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: mm: avoid leaving partial pfn mappings around in error case As Jann points out, PFN mappings are special, because unlike normal memory mappings, there is no lifetime information associated with the mapping - it is just a raw mapping of PFNs with no reference counting of a 'struct page'. That's all very much intentional, but it does mean that it's easy to mess up the cleanup in case of errors. Yes, a failed mmap() will always eventually clean up any partial mappings, but without any explicit lifetime in the page table mapping itself, it's very easy to do the error handling in the wrong order. In particular, it's easy to mistakenly free the physical backing store before the page tables are actually cleaned up and (temporarily) have stale dangling PTE entries. To make this situation less error-prone, just make sure that any partial pfn mapping is torn down early, before any other error handling.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: mm: avoid leaving partial pfn mappings around in error case As Jann points out, PFN mappings are special, because unlike normal memory mappings, there is no lifetime information associated with the mapping - it is just a raw mapping of PFNs with no reference counting of a 'struct page'. That's all very much intentional, but it does mean that it's easy to mess up the cleanup in case of errors. Yes, a failed mmap() will always eventually clean up any partial mappings, but without any explicit lifetime in the page table mapping itself, it's very easy to do the error handling in the wrong order. In particular, it's easy to mistakenly free the physical backing store before the page tables are actually cleaned up and (temporarily) have stale dangling PTE entries. To make this situation less error-prone, just make sure that any partial pfn mapping is torn down early, before any other error handling.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | < 5.15.168 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.111 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.52 | — |
| Linux | Linux Kernel | >= 6.7, < 6.10.11 | — |
| Linux | Linux Kernel | 6.11 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-47674?
How severe is CVE-2024-47674?
How do I fix CVE-2024-47674?
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-47669In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4767If the `browser.privatebrowsing.autostart` preference is ena…4.3
- CVE-2024-47670In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-47671In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-47672Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-47673In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-47675In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-47676In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-47677In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-47678In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-47679In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-4768A bug in popup notifications' interaction with WebAuthn made…6.1
Are you affected by CVE-2024-47674?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
