{"id":"CVE-2026-138832","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:37.613","lastModified":"2026-11-30T14:17:37.613","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: reclaim isolated folios if PTE restart fails\n\nMADV_PAGEOUT collects isolated folios on a local list before reclaiming\nthem after the PTE walk.  The reschedule path drops the PTE lock and then\nrestarts the mapping with pte_offset_map_lock().\n\nA concurrent operation can remove or replace the PTE table while the lock\nis dropped, causing pte_offset_map_lock() to return NULL.  Returning\ndirectly in that case bypasses reclaim_pages(), leaving the collected\nfolios off the LRU with elevated references.\n\nThis results in a permanent memory leak.  nr_isolated_anon increases\nreliably and does not decrease when the process dies.\n\nRoute the failure through the existing cleanup path so any isolated folios\nare reclaimed or put back.\n\nSimplest userland pseudo-code reproducer:\n\np = mmap(PMD_SIZE, ANONYMOUS);\ntouch_every_page(p, PMD_SIZE);\nparallel {\n   while (1) madvise(p, PMD_SIZE, MADV_PAGEOUT);\n   while (1) {\n       madvise(p, PMD_SIZE, MADV_DONTNEED);\n       touch_every_page(p, PMD_SIZE);\n   }\n}\n\nReproduced in qemu trivially with some explicit widening of the race window."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/madvise.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"52202745c8b3835119f4f6d00060df416e49b329","versionType":"git","status":"affected"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"06eebc180008290a042403e66fff2e80542c99a0","versionType":"git","status":"affected"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"380fbb3a43228a3f439d64549a9d854a23d336b8","versionType":"git","status":"affected"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"5445a6359d717354dd76d509b8e693f13403ec61","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/madvise.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.7","status":"affected"},{"version":"0","lessThan":"6.7","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/06eebc180008290a042403e66fff2e80542c99a0","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/380fbb3a43228a3f439d64549a9d854a23d336b8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/52202745c8b3835119f4f6d00060df416e49b329","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5445a6359d717354dd76d509b8e693f13403ec61","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}