Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda before 44cad7ea3532f14999008d899daacc4ce4b633bf; affected 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda before 872b7427e64f3e84b16c62577cbf3cd09a3401a2; affected 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda before da87bcad1f781d822e7ced6d1de9dbc6d381c72e; affected 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda before a2035918a7a1d8fd3bb79d22e1e149294a5a8418; affected 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda before 960c4a8069bfd352c48cc88592618f1ebe24c69e |
| Linux / Linux | affected 5.14; unaffected 0 before 5.14; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/44cad7ea3532f14999008d899daacc4ce4b633bf
- https://git.kernel.org/stable/c/872b7427e64f3e84b16c62577cbf3cd09a3401a2
- https://git.kernel.org/stable/c/da87bcad1f781d822e7ced6d1de9dbc6d381c72e
- https://git.kernel.org/stable/c/a2035918a7a1d8fd3bb79d22e1e149294a5a8418
- https://git.kernel.org/stable/c/960c4a8069bfd352c48cc88592618f1ebe24c69e