# CVE-2026-138898: mm/madvise: skip zone device folios in cold/pageout PMD range

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:00.830Z
- Modified: 2026-11-30T14:17:47.730Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c before c30bf2e8df833c5a8d235f31f90b695cbd6f3101; from a30b48bf1b244f11bf9b6d20cdccfe0c2264130c before ab7ace574f3da7f167fe1883116480a00c52150c; 6.19 (not affected: before 6.19; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/c30bf2e8df833c5a8d235f31f90b695cbd6f3101>
- <https://git.kernel.org/stable/c/ab7ace574f3da7f167fe1883116480a00c52150c>

## Sources

- CVE List: [CVE-2026-138898](https://www.cve.org/CVERecord?id=CVE-2026-138898), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138898](https://nvd.nist.gov/vuln/detail/CVE-2026-138898), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138898 · Whole record: https://cve.day/CVE-2026-138898.json · Rebuilt by cve.day 2026-11-30T14:33:02.399Z
