CVE-2026-89758
nicheLinux kernel mempolicy flaw mishandles device-private PMDs, enabling local kernel memory corruption
A flaw in the Linux kernel's memory-management policy code (queue_folios_pmd, used by mbind(), migrate_pages(), and set_mempolicy_home_node()) causes it to treat a non-present PMD holding a device-private swap entry as if it were a present transparent huge page. Such PMDs are created when an HMM-based GPU driver migrates an anonymous THP folio to device memory via migrate_vma_pages(), after which the kernel passes the PMD's softleaf encoding to pmd_folio() as though it were a hardware PFN, yielding a bogus folio pointer. Consequences range from a VM_BUG_ON() on debug kernels, to a kernel oops from a bogus vmemmap dereference, to silently isolating an unrelated live folio from the LRU — i.e., kernel memory corruption that a local attacker with low privileges could leverage for a crash or potentially privilege escalation (CVSS 3.1: 7.8). Only systems running an HMM-based GPU driver that performs device-private memory migration are exposed to the trigger. No public proof of concept is known and there is no evidence of exploitation in the wild.
What to do: Patch to a kernel containing the fix (patch series "mm: handle device-private PMDs in walk callbacks", v3) as soon as your distribution ships it. Until then, on GPU compute hosts using HMM device-private migration, avoid invoking mbind(), migrate_pages(), or set_mempolicy_home_node() over ranges that may hold device-private PMDs, or disable transparent huge pages / device-private migration as a workaround. Watch for kernel oops or VM_BUG_ON traces originating in queue_folios_pmd() as an indicator of the bug being hit.
| Linux kernel | Kernels containing commit 368076f52ebe ("mm/huge_memory: add device-private THP support to PMD operations") and predating the fix from the patch series "mm: han |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: skip non-present PMDs when queueing folios Patch series "mm: handle device-private PMDs in walk callbacks", v3. Since commit 368076f52ebe ("mm/huge_memory: add device-private THP support to PMD operations") a PMD may hold a device-private swap entry whenever an HMM-based GPU driver migrates an anonymous THP folio to device memory via migrate_vma_pages(). pmd_trans_huge_lock() succeeds for such PMDs (pmd_is_huge() returns true for any non-present, non-none huge PMD), so several MM walk callbacks that used to assume present THP or migration entry are now reachable with a device-private PMD. The results range from a VM_BUG_ON() firing on debug kernels, to an oops on a bogus vmemmap dereference, to silently isolating an unrelated live folio from LRU in the aliasing case. This patch (of 3): queue_folios_pmd() is called under pmd_trans_huge_lock(), whose pmd_is_huge() check returns true for any non-present, non-none PMD softleaf. Passing such a PMD to pmd_folio() treats the softleaf encoding as a hardware PFN and can return a bogus folio pointer. Mirror queue_folios_pte_range(): handle non-present entries before looking up a folio. Keep migration entries counted as failures, but skip other non-present PMDs such as device-private entries. Potential trigger: an HMM-based GPU driver migrates an anonymous THP folio to device memory via migrate_vma_pages(), leaving a device-private PMD. Userspace then calls mbind(), migrate_pages() or set_mempolicy_home_node() on that range.
- Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the news0 stories
No ingested article mentions this CVE yet.