Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38447

published high CVSS 3.1 · 7.8

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

Published
25 Jul 2025, 15:27:29 UTC
Updated
05 Aug 2026, 12:01:58 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux354dffd29575cdf13154e8fb787322354aa9efc4 to < 510fe9c15d07e765d96be9a9dc37e5057c6c09f4 · 354dffd29575cdf13154e8fb787322354aa9efc4 to < ddd05742b45b083975a0855ef6ebbf88cf1f532a · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.15.7 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached purely through local syscalls (mmap, madvise MADV_HUGEPAGE/MADV_FREE/MADV_PAGEOUT, mremap) against the attacker's own address space. There is no network- or adjacent-network-reachable path into the reclaim/rmap unmap code. AC:L - The attacker fully and deterministically controls every precondition — folio size, lazyfree state, PMD-straddling placement via an unaligned mremap, and the reclaim trigger via MADV_PAGEOUT — with no race to win and no attacker-independent condition. The required config (CONFIG_TRANSPARENT_HUGEPAGE) is ubiquitous and MADV_HUGEPAGE covers the thp=madvise default. PR:L - Only an ordinary unprivileged local user account is needed; every step uses unrestricted memory-management syscalls on private anonymous memory with no capability check anywhere along the path. UI:N - The attacking process performs the entire sequence itself and drives reclaim of its own folio via madvise(MADV_PAGEOUT); no victim action or interaction is involved. S:U - The out-of-bounds page-table access and the resulting corruption occur within the kernel's own security authority, the same authority the attacker is escalating within. No VM, IOMMU, or sandbox boundary is crossed by the primary defect. C:H - The bug reads up to ~4 KB of kernel memory past the end of a page-table page — far beyond a "few bytes" — and the resulting page-table corruption plus folio refcount underflow yields a use-after-free that can be leveraged into arbitrary kernel memory disclosure. I:H - When the OOB scan matches, get_and_clear_full_ptes()/set_ptes() write PTE-sized values past the end of the page-table page, and folio_ref_sub()/folio_remove_rmap_ptes() underflow the refcount and mapcount of a still-mapped folio, giving page-table-level memory corruption and a UAF write primitive suitable for privilege escalation. A:H - The out-of-bounds read can fault on an unmapped adjacent page (memory holes, DEBUG_PAGEALLOC/page poisoning, KASAN) causing an oops, and the refcount underflow frees a folio that is still mapped, reliably producing a kernel panic or corruption-induced crash.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 354dffd29575cdf13154e8fb787322354aa9efc4 to < 510fe9c15d07e765d96be9a9dc37e5057c6c09f4 (affected · git)354dffd29575cdf13154e8fb787322354aa9efc4 to < ddd05742b45b083975a0855ef6ebbf88cf1f532a (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.15.7 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
042754e8ec1ffde26a5fef1b3df28166da37c23a3b3da231a794d9f6fee06efa
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected