CVE-2025-38447
Last modified
CVE-2025-38447 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: mm/rmap: fix potential out-of-bounds page table access during batched unmap As pointed out by David[1], the batched unmap logic in try_to_unmap_one() may read past the end of a PTE table when a large folio's PTE mappings are not fully contained within a single page table. While this scenario might be rare, an issue triggerable from userspace must be fixed regardless of its likelihood. This patch fixes the out-of-bounds access by refactoring the logic into a new helper, folio_unmap_pte_batch(). The new helper correctly calculates the safe batch size by capping the scan at both the VMA and PMD boundaries. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/rmap: fix potential out-of-bounds page table access during batched unmap As pointed out by David[1], the batched unmap logic in try_to_unmap_one() may read past the end of a PTE table when a large folio's PTE mappings are not fully contained within a single page table. While this scenario might be rare, an issue triggerable from userspace must be fixed regardless of its likelihood. This patch fixes the out-of-bounds access by refactoring the logic into a new helper, folio_unmap_pte_batch(). The new helper correctly calculates the safe batch size by capping the scan at both the VMA and PMD boundaries. To simplify the code, it also supports partial batching (i.e., any number of pages from 1 up to the calculated safe maximum), as there is no strong reason to special-case for fully mapped folios.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.15, < 6.15.7 | — |
| Linux | Linux Kernel | 6.16 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38447?
How severe is CVE-2025-38447?
How do I fix CVE-2025-38447?
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 2025
- CVE-2025-38441In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38442In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38443In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38444In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38445In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38446In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38448In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38449In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3845A vulnerability was found in markparticle WebServer up to 1.…9.8
- CVE-2025-38450In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38451In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38452In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38447?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
