CVE-2026-138832
mm/madvise: reclaim isolated folios if PTE restart fails
Check your servers for CVE-2026-138832
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138832 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.41% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b2f557a21bc8fffdcd65794eda8a854e024999f3, before 52202745c8b3835119f4f6d00060df416e49b329 affected from b2f557a21bc8fffdcd65794eda8a854e024999f3, before 06eebc180008290a042403e66fff2e80542c99a0 affected from b2f557a21bc8fffdcd65794eda8a854e024999f3, before 380fbb3a43228a3f439d64549a9d854a23d336b8 affected from b2f557a21bc8fffdcd65794eda8a854e024999f3, before 5445a6359d717354dd76d509b8e693f13403ec61
Other versions: unaffected
|
| Linux |
affected 6.7 unaffected before 6.7 unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138832 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138832
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138832
trivy image --scanners vuln IMAGE | grep CVE-2026-138832
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/52202745c8b3835119f4f6d00060df416e49b329 git.kernel.org
- https://git.kernel.org/stable/c/06eebc180008290a042403e66fff2e80542c99a0 git.kernel.org
- https://git.kernel.org/stable/c/380fbb3a43228a3f439d64549a9d854a23d336b8 git.kernel.org
- https://git.kernel.org/stable/c/5445a6359d717354dd76d509b8e693f13403ec61 git.kernel.org
Source: the record CVE-2026-138832 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse