CVE-2026-142973: drm/amdkfd: skip GPUs without a VM when checkpointing the BO mappings
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: skip GPUs without a VM when checkpointing the BO mappings
criucheckpointbos() asks every device of the process whether a BO is mapped there, passing its drmpriv, which is NULL for the devices the process never acquired a VM on. On navi48 with its iGPU, checkpointing a process which acquired the VM of the dGPU only:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000002f: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000178-0x000000000000017f] RIP: 0010:amdgpuamdkfdbomappedtodev+0x35/0x160 [amdgpu] kfdioctlcriu+0x30d1/0x4aa0 [amdgpu] kfdioctl+0x767/0xb10 [amdgpu]
Nothing can be mapped on such a device, skip it.
(cherry picked from commit 794381c358d344d8fcf8b9e6426aa2bac0a7d1f7)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 794381c358d344d8fcf8b9e6426aa2bac0a7d1f7
Event History
Frequently Asked Questions
What system setup triggers the fault?
The fault occurs when checkpointing an AMD KFD process on a system with multiple GPUs where the process acquired a VM on one GPU, such as a dGPU, but not on another GPU, such as an iGPU. The checkpoint path queries every device and can pass a NULL drm_priv for a device without a VM.
What is the impact of triggering this issue?
Triggering the affected checkpointing path causes a kernel NULL-pointer dereference, reported as an Oops/general protection fault in amdgpu_amdkfd_bo_mapped_to_dev. This can crash or destabilize the affected kernel.
Is a GPU without an acquired VM expected to have mappings that need checkpointing?
No. The fix skips GPUs for which the process has no VM, because nothing can be mapped on those devices.
How can I tell whether the fix is present?
Check whether the kernel includes the referenced stable commits: 2b452abc7f6a1714834b414608a9490c9db44cf2, 38398012ed59d54cbf8dbb3b7645f1700960f3d0, or 9506c575720ccb171a3f11e3d0c4519bdafb849a. The corrected behavior skips devices whose drm_priv is NULL during BO-mapping checkpointing.