mm/madvise: skip zone device folios in cold/pageout PMD range

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

mm/madvise: skip zone device folios in cold/pageout PMD range

madvise_cold_or_pageout_pte_range() resolves the folio backing a PMD via pmd_folio() and ages or reclaims it without checking for zone device memory.

The surrounding guards do not cover every zone device case:

- can_madv_lru_vma() excludes VM_PFNMAP and VM_HUGETLB VMAs (so device DAX is filtered)

- !pmd_present() 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 pmd_folio() (unlike vm_normal_page_pmd(), it performs no special/pfnmap check), and would be aged or paged out here.

Skip ZONE_DEVICE folios explicitly during MADV_COLD/PAGEOUT.

ProductVersions
Linux Linuxa30b48bf1b244f11bf9b6d20cdccfe0c2264130c to before c30bf2e8df833c5a8d235f31f90b695cbd6f3101 Affecteda30b48bf1b244f11bf9b6d20cdccfe0c2264130c to before ab7ace574f3da7f167fe1883116480a00c52150c Affected
Linux Linux6.19 Affectedbefore 6.19 Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.