PoC Monitor
← All CVEs
CVE-2025-38447published 25 Jul 2025 15:27 UTCData: JSON · API

Linux

mm/rmap: fix potential out-of-bounds page table access during batched unmap

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-125
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 354dffd29575cdf13154e8fb787322354aa9efc4, < 510fe9c15d07e765d96be9a9dc37e5057c6c09f4
  • >= 354dffd29575cdf13154e8fb787322354aa9efc4, < ddd05742b45b083975a0855ef6ebbf88cf1f532a

Fixed in 510fe9c15d07e765d96be9a9dc37e5057c6c09f4, ddd05742b45b083975a0855ef6ebbf88cf1f532a

Linux Linux
  • 6.15

Fixed in 0, 6.15.7, 6.16

Mitigation

Upgrade Linux to 510fe9c15d07e765d96be9a9dc37e5057c6c09f4 or ddd05742b45b083975a0855ef6ebbf88cf1f532a or later.

Upgrade Linux to 0 or 6.15.7 or 6.16 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published25 Jul 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.