CVE-2026-89810: drm/amdkfd: Fix error path at svm_migrate_copy_to_ram
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-89810 to this issue.
Affected and fixed versions
===========================
Fixed in 6.18.51 with commit da87bcad1f781d822e7ced6d1de9dbc6d381c72e Fixed in 7.2.5 with commit a2035918a7a1d8fd3bb79d22e1e149294a5a8418 Fixed in 7.3-rc1 with commit 960c4a8069bfd352c48cc88592618f1ebe24c69e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-89810
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/da87bcad1f781d822e7ced6d1de9dbc6d381c72e https://git.kernel.org/stable/c/a2035918a7a1d8fd3bb79d22e1e149294a5a8418 https://git.kernel.org/stable/c/960c4a8069bfd352c48cc88592618f1ebe24c69e