{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a30b48bf1b244f11bf9b6d20cdccfe0c2264130c"
            },
            {
              "fixed": "c30bf2e8df833c5a8d235f31f90b695cbd6f3101"
            },
            {
              "fixed": "ab7ace574f3da7f167fe1883116480a00c52150c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138898.json"
  },
  "details": "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.",
  "id": "CVE-2026-138898",
  "modified": "2026-12-01T20:45:39.371323580Z",
  "published": "2026-11-30T13:26:00.830Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ab7ace574f3da7f167fe1883116480a00c52150c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c30bf2e8df833c5a8d235f31f90b695cbd6f3101"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138898.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138898"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/madvise: skip zone device folios in cold/pageout PMD range"
}