KernelScan.io

HIGH Introduced in 6.5

amdkfd DestroyQueue UAF

CVE-2026-97429

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

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.

02

Engine v0.6.0

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.

Affecteddrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c (drm/amdkfd)

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.

03

BranchIntroducedFixed inPatch commit
6.126.56.12.11141144829f464
6.186.56.18.53d98c8032c299
6.66.56.6.158090b51e2dabf
mainline6.57.2ac081deaf16a
cip/6.126.56.12.111-cip3241144829f464

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32