CVE-2026-97429: drm/amdkfd: fix UAF race in destroy_queue_cpsch
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix UAF race in destroy_queue_cpsch
wait_on_destroy_queue() drops locks to wait for queue resume, allowing a concurrent destroy to free the queue. Use is_being_destroyed flag to serialize destruction.
The Linux kernel CVE team has assigned CVE-2026-97429 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 41144829f4645c2bd4cb501d34d253858f750c0a Fixed in 6.18.53 with commit d98c8032c29944e1e572e1f49a0613d364fece0f Fixed in 7.2 with commit ac081deaf16a639ea7dff2f285fe421a33c1ade0
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-97429
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_device_queue_manager.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/41144829f4645c2bd4cb501d34d253858f750c0a https://git.kernel.org/stable/c/d98c8032c29944e1e572e1f49a0613d364fece0f https://git.kernel.org/stable/c/ac081deaf16a639ea7dff2f285fe421a33c1ade0