CVE-2026-138898: mm/madvise: skip zone device folios in cold/pageout PMD range
In the Linux kernel, the following vulnerability has been resolved:
mm/madvise: skip zone device folios in cold/pageout PMD range
madvisecoldorpageoutpterange() resolves the folio backing a PMD via pmdfolio() and ages or reclaims it without checking for zone device memory.
The surrounding guards do not cover every zone device case:
- canmadvlruvma() excludes VMPFNMAP and VMHUGETLB VMAs (so device DAX is filtered)
- !pmdpresent() branch above rejects device-private and migration entries, which are non-present.
- A present zone device PMD - e.g. a device-coherent THP - is not filtered by any of these, nor by pmdfolio() (unlike vmnormalpagepmd(), it performs no special/pfnmap check), and would be aged or paged out here.
Skip ZONEDEVICE folios explicitly during MADVCOLD/PAGEOUT.