{"id":"CVE-2026-138898","aliases":["CVE-2026-138898"],"related":[],"kind":"vulnerability","state":"published","title":"mm/madvise: skip zone device folios in cold/pageout PMD range","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: skip zone device folios in cold/pageout PMD range\n\nmadvise_cold_or_pageout_pte_range() resolves the folio backing a PMD via\npmd_folio() and ages or reclaims it without checking for zone device\nmemory.\n\nThe surrounding guards do not cover every zone device case:\n\n  - can_madv_lru_vma() excludes VM_PFNMAP and VM_HUGETLB VMAs\n    (so device DAX is filtered)\n\n  - !pmd_present() branch above rejects device-private and\n    migration entries, which are non-present.\n\n  - A present zone device PMD - e.g. a device-coherent THP - is\n    not filtered by any of these, nor by pmd_folio() (unlike\n    vm_normal_page_pmd(), it performs no special/pfnmap check),\n    and would be aged or paged out here.\n\nSkip ZONE_DEVICE folios explicitly during MADV_COLD/PAGEOUT.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: skip zone device folios in cold/pageout PMD range\n\nmadvise_cold_or_pageout_pte_range() resolves the folio backing a PMD via\npmd_folio() and ages or reclaims it without checking for zone device\nmemory.\n\nThe surrounding guards do not cover every zone device case:\n\n  - can_madv_lru_vma() excludes VM_PFNMAP and VM_HUGETLB VMAs\n    (so device DAX is filtered)\n\n  - !pmd_present() branch above rejects device-private and\n    migration entries, which are non-present.\n\n  - A present zone device PMD - e.g. a device-coherent THP - is\n    not filtered by any of these, nor by pmd_folio() (unlike\n    vm_normal_page_pmd(), it performs no special/pfnmap check),\n    and would be aged or paged out here.\n\nSkip ZONE_DEVICE folios explicitly during MADV_COLD/PAGEOUT.","source":"cvelist"}],"published":"2026-11-30T13:26:00.830Z","modified":"2026-11-30T14:17:47.730Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a30b48bf1b244f11bf9b6d20cdccfe0c2264130c","fixed":"c30bf2e8df833c5a8d235f31f90b695cbd6f3101","status":"affected"},{"type":"git","introduced":"a30b48bf1b244f11bf9b6d20cdccfe0c2264130c","fixed":"ab7ace574f3da7f167fe1883116480a00c52150c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c30bf2e8df833c5a8d235f31f90b695cbd6f3101","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab7ace574f3da7f167fe1883116480a00c52150c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138898","url":"https://www.cve.org/CVERecord?id=CVE-2026-138898","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:00.830Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138898","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138898","licence":"Public domain","modified":"2026-11-30T14:17:47.730Z"}],"updatedAt":"2026-11-30T14:33:02.399Z","epss":{"score":0.00198,"percentile":0.10108,"date":"2026-12-01T12:00:22.000Z"}}