mm: migrate_device: fix pte_pfn/pte_dirty called on non-present PTE
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6c287605fd56466e645693eff3ae7c08fba56e0a · < 63867c82d0c0c2d182016a32b1cc0103116b0ea5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mm: migrate_device: fix pte_pfn/pte_dirty called on non-present PTE
pte_pfn() and pte_dirty() have undefined behaviour when called on a non-present PTE. In migrate_vma_collect_pmd(), these functions may be invoked on non-present entries (e.g., device-private entries), leading to potential crashes from pte_pfn() or incorrect dirty folio accounting from pte_dirty(). Fix both by guarding with pte_present() checks.
From the CVE record · Linux
The Linux kernel’s migrate_vma_collect_pmd() may call pte_pfn() or pte_dirty() on non-present page-table entries, potentially causing crashes or incorrect dirty-folio accounting. The input does not establish an attacker path or specify whether access, authentication, or user interaction is required.
Teams running the Linux kernel should check their installations; affected versions are not specified.