HIGH Introduced in 6.5
amdkfd DestroyQueue UAF
CVE-2026-97429
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
A use-after-free race condition in the AMD KFD GPU driver allows a local user with GPU device access to corrupt kernel heap memory by concurrently destroying the same compute queue. Successful exploitation could lead to kernel code execution, privilege escalation, or system crash. Systems without AMD GPU hardware or without unprivileged GPU access are not affected.
Vulnerability analysis
In the AMD KFD driver's queue destruction path, the code drops its lock to wait for a suspended queue to resume. During this unlocked window, a concurrent call to destroy the same queue can proceed and free the queue object, so when the first caller reacquires the lock and continues, it accesses freed memory. The fix introduces a flag that marks a queue as being destroyed before the lock is dropped; any concurrent destroyer seeing the flag already set returns immediately, serializing destruction and preventing the double-free. The error paths also clear the flag so a failed destroy does not permanently block future attempts. This is reachable locally by any user with access to the AMD GPU device node, and triggering it requires two threads racing to destroy the same queue.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.5 | 6.12.111 | 41144829f464 |
| 6.18 | 6.5 | 6.18.53 | d98c8032c299 |
| 6.6 | 6.5 | 6.6.158 | 090b51e2dabf |
| mainline | 6.5 | 7.2 | ac081deaf16a |
| cip/6.12 | 6.5 | 6.12.111-cip32 | 41144829f464 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |