Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6c287605fd56466e645693eff3ae7c08fba56e0a to < 26f9ca8ed42cba25d2c75daff13561cce6019395affected6c287605fd56466e645693eff3ae7c08fba56e0a to < 5b948706f11a950bc73c5304630d0a7eafc40dafaffected6c287605fd56466e645693eff3ae7c08fba56e0a to < 86d55447de3738620b9a8272ff167ce97e7f7203affected6c287605fd56466e645693eff3ae7c08fba56e0a to < 2be94d6b20789b8865b1864dae5fe458ca85e019affected6c287605fd56466e645693eff3ae7c08fba56e0a to < 42f30fa5481a1f90571ccdfbb20d2e25e47ae76eaffected6c287605fd56466e645693eff3ae7c08fba56e0a to < 63867c82d0c0c2d182016a32b1cc0103116b0ea5affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected6.1.184 to ≤ 6.1.*unaffected6.6.153 to ≤ 6.6.*unaffected6.12.103 to ≤ 6.12.*unaffected6.18.44 to ≤ 6.18.*unaffected7.1.8 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/26f9ca8ed42cba25d2c75daff13561cce6019395 ↗
- https://git.kernel.org/stable/c/5b948706f11a950bc73c5304630d0a7eafc40daf ↗
- https://git.kernel.org/stable/c/86d55447de3738620b9a8272ff167ce97e7f7203 ↗
- https://git.kernel.org/stable/c/2be94d6b20789b8865b1864dae5fe458ca85e019 ↗
- https://git.kernel.org/stable/c/42f30fa5481a1f90571ccdfbb20d2e25e47ae76e ↗
- https://git.kernel.org/stable/c/63867c82d0c0c2d182016a32b1cc0103116b0ea5 ↗