CVE-2026-138832

Source
https://cve.org/CVERecord?id=CVE-2026-138832
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138832.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138832
Downstream
Published
2026-11-30T13:25:24Z
Modified
2026-11-30T15:01:03Z
Summary
mm/madvise: reclaim isolated folios if PTE restart fails
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138832.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b2f557a21bc8fffdcd65794eda8a854e024999f3
Fixed
52202745c8b3835119f4f6d00060df416e49b329
Fixed
06eebc180008290a042403e66fff2e80542c99a0
Fixed
380fbb3a43228a3f439d64549a9d854a23d336b8
Fixed
5445a6359d717354dd76d509b8e693f13403ec61

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138832.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138832.json"