{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138832","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.897Z","datePublished":"2026-11-30T13:25:24.002Z","dateUpdated":"2026-11-30T13:25:24.002Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:25:24.002Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/madvise.c"],"versions":[{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"52202745c8b3835119f4f6d00060df416e49b329","status":"affected","versionType":"git"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"06eebc180008290a042403e66fff2e80542c99a0","status":"affected","versionType":"git"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"380fbb3a43228a3f439d64549a9d854a23d336b8","status":"affected","versionType":"git"},{"version":"b2f557a21bc8fffdcd65794eda8a854e024999f3","lessThan":"5445a6359d717354dd76d509b8e693f13403ec61","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/madvise.c"],"versions":[{"version":"6.7","status":"affected"},{"version":"0","lessThan":"6.7","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/52202745c8b3835119f4f6d00060df416e49b329"},{"url":"https://git.kernel.org/stable/c/06eebc180008290a042403e66fff2e80542c99a0"},{"url":"https://git.kernel.org/stable/c/380fbb3a43228a3f439d64549a9d854a23d336b8"},{"url":"https://git.kernel.org/stable/c/5445a6359d717354dd76d509b8e693f13403ec61"}],"title":"mm/madvise: reclaim isolated folios if PTE restart fails","x_generator":{"engine":"bippy-1.2.0"}}}}