CVE-2026-138832: mm/madvise: reclaim isolated folios if PTE restart fails

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/madvise: reclaim isolated folios if PTE restart fails

MADVPAGEOUT 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 pteoffsetmaplock().

A concurrent operation can remove or replace the PTE table while the lock is dropped, causing pteoffsetmaplock() to return NULL. Returning directly in that case bypasses reclaimpages(), leaving the collected folios off the LRU with elevated references.

This results in a permanent memory leak. nrisolatedanon 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(PMDSIZE, ANONYMOUS); toucheverypage(p, PMDSIZE); parallel { while (1) madvise(p, PMDSIZE, MADVPAGEOUT); while (1) { madvise(p, PMDSIZE, MADVDONTNEED); toucheverypage(p, PMDSIZE); } }

Reproduced in qemu trivially with some explicit widening of the race window.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203