Linux
drm/amdkfd: Fix error path at svm_migrate_copy_to_ram
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix error path at svm_migrate_copy_to_ram If page migration from device to sys ram fails for some reasons driver needs release and unlock allocated system pages. To do that driver should use page physical address, or pfn, then get struct page*. Current driver uses dma address(for adev) that is not correct with IOMMU enabled, or even in general. The patch releases and unlocks allocated system pages based on where migration failed by struct page* of sys ram pages. Also dma_unmap correspodent system ram pages at error path.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < ee007a238dd363ba2f3a3b01815703cfe98711c7
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < 44cad7ea3532f14999008d899daacc4ce4b633bf
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < 872b7427e64f3e84b16c62577cbf3cd09a3401a2
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < da87bcad1f781d822e7ced6d1de9dbc6d381c72e
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < a2035918a7a1d8fd3bb79d22e1e149294a5a8418
- >= 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda, < 960c4a8069bfd352c48cc88592618f1ebe24c69e
Fixed in ee007a238dd363ba2f3a3b01815703cfe98711c7, 44cad7ea3532f14999008d899daacc4ce4b633bf, 872b7427e64f3e84b16c62577cbf3cd09a3401a2, da87bcad1f781d822e7ced6d1de9dbc6d381c72e, a2035918a7a1d8fd3bb79d22e1e149294a5a8418, 960c4a8069bfd352c48cc88592618f1ebe24c69e
- 5.14
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to ee007a238dd363ba2f3a3b01815703cfe98711c7 or 44cad7ea3532f14999008d899daacc4ce4b633bf or 872b7427e64f3e84b16c62577cbf3cd09a3401a2 or da87bcad1f781d822e7ced6d1de9dbc6d381c72e or a2035918a7a1d8fd3bb79d22e1e149294a5a8418 or 960c4a8069bfd352c48cc88592618f1ebe24c69e or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.