CVE-2026-138832
publishedmm/madvise: reclaim isolated folios if PTE restart fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb2f557a21bc8fffdcd65794eda8a854e024999f3 to < 52202745c8b3835119f4f6d00060df416e49b329 · b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 06eebc180008290a042403e66fff2e80542c99a0 · b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 380fbb3a43228a3f439d64549a9d854a23d336b8 · b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 5445a6359d717354dd76d509b8e693f13403ec61 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/madvise: reclaim isolated folios if PTE restart fails MADV_PAGEOUT collects isolated folios on a local list before reclaiming them after the PTE walk. The reschedule path drops the PTE lock and then restarts the mapping with pte_offset_map_lock(). A concurrent operation can remove or replace the PTE table while the lock is dropped, causing pte_offset_map_lock() to return NULL. Returning directly in that case bypasses reclaim_pages(), leaving the collected folios off the LRU with elevated references. This results in a permanent memory leak. nr_isolated_anon increases reliably and does not decrease when the process dies. Route the failure through the existing cleanup path so any isolated folios are reclaimed or put back. Simplest userland pseudo-code reproducer: p = mmap(PMD_SIZE, ANONYMOUS); touch_every_page(p, PMD_SIZE); parallel { while (1) madvise(p, PMD_SIZE, MADV_PAGEOUT); while (1) { madvise(p, PMD_SIZE, MADV_DONTNEED); touch_every_page(p, PMD_SIZE); } } Reproduced in qemu trivially with some explicit widening of the race window.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 52202745c8b3835119f4f6d00060df416e49b329 (affected · git)b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 06eebc180008290a042403e66fff2e80542c99a0 (affected · git)b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 380fbb3a43228a3f439d64549a9d854a23d336b8 (affected · git)b2f557a21bc8fffdcd65794eda8a854e024999f3 to < 5445a6359d717354dd76d509b8e693f13403ec61 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
mm/madvise: reclaim isolated folios if PTE restart fails
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6015e95f92033eaae646382b5f5f98e8b9baeedd42154836ed991f788989bf85
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record