CVE-2026-138898

Source
https://cve.org/CVERecord?id=CVE-2026-138898
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138898.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138898
Downstream
Published
2026-11-30T13:26:00Z
Modified
2026-12-01T21:02:42Z
Summary
mm/madvise: skip zone device folios in cold/pageout PMD range
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138898.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a30b48bf1b244f11bf9b6d20cdccfe0c2264130c
Fixed
c30bf2e8df833c5a8d235f31f90b695cbd6f3101
Fixed
ab7ace574f3da7f167fe1883116480a00c52150c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138898.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138898.json"