Skip to main content
Vulnerability Database/CVE-2026-97429

CVE-2026-97429: Linux Kernel Use-After-Free Vulnerability

CVE-2026-97429 is a use-after-free flaw in the Linux kernel drm/amdkfd driver that occurs during queue destruction. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97429 Overview

CVE-2026-97429 is a use-after-free (UAF) race condition in the Linux kernel's AMD Kernel Fusion Driver (amdkfd) component. The flaw resides in the destroy_queue_cpsch code path, where wait_on_destroy_queue() drops locks while waiting for a queue to resume. During this window, a concurrent destroy operation can free the queue, leaving a dangling reference that the original caller later dereferences. The upstream fix introduces an is_being_destroyed flag to serialize destruction and close the race.

Critical Impact

A local, authenticated user with access to the AMD GPU compute stack can trigger the race to corrupt kernel memory, potentially achieving privilege escalation or kernel-level code execution.

Affected Products

  • Linux kernel builds including the drm/amdkfd driver prior to the stable commits referenced below
  • Distributions shipping AMD GPU compute support (ROCm / KFD) on affected kernel versions
  • Systems exposing /dev/kfd to unprivileged or semi-privileged local users

Discovery Timeline

  • 2026-09-24 - CVE-2026-97429 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97429

Vulnerability Analysis

The vulnerability affects the Compute Processor Scheduler (CPSCH) path in the AMD Kernel Fusion Driver. When userspace requests queue destruction, destroy_queue_cpsch() calls wait_on_destroy_queue() to synchronize with queue state transitions. That helper releases the device and process mutexes while sleeping for the queue to resume execution.

A second thread issuing a destroy request against the same queue can enter the critical section during this lock gap. The concurrent path frees the queue object before the original caller resumes. When the first thread reacquires the locks and continues, it operates on freed memory, producing a classic use-after-free [CWE-416].

Successful exploitation requires local access and valid credentials to interact with the KFD interface. Impact to confidentiality, integrity, and availability is high because the corruption occurs in kernel address space.

Root Cause

The root cause is insufficient serialization between concurrent queue-destruction requests. Dropping locks across a wait is safe only if subsequent code revalidates object liveness. The original implementation lacked such a guard, allowing two destroyers to race on the same queue allocation.

Attack Vector

An attacker with local shell access and permission to open /dev/kfd can script parallel ioctl calls that request destruction of the same queue identifier. By timing the second destroy to land while the first is parked inside wait_on_destroy_queue(), the attacker frees the queue object and then forces the first thread to touch the stale pointer. The resulting UAF can be shaped into arbitrary kernel memory corruption using standard heap-spray techniques against the slab allocator.

See the upstream patches for the exact serialization logic: Linux kernel commit 41144829, commit ac081dea, and commit d98c8032.

Detection Methods for CVE-2026-97429

Indicators of Compromise

  • Kernel oops or general protection fault entries in dmesg referencing destroy_queue_cpsch, wait_on_destroy_queue, or amdkfd symbols
  • KASAN use-after-free reports naming the queue object inside the KFD scheduler on test or production hosts
  • Unexpected crashes or panics on hosts running AMD GPU compute workloads after local user activity

Detection Strategies

  • Audit processes that open /dev/kfd and correlate with users who should not have GPU compute access
  • Hunt for repeated or parallel ioctl invocations against KFD queue destruction codes from the same PID or process group
  • Review kernel crash telemetry for recurring faults in AMD GPU driver stack frames, which may indicate exploitation attempts

Monitoring Recommendations

  • Forward kernel ring buffer and KASAN logs to a central SIEM for signature matching against amdkfd fault patterns
  • Enable auditd rules on /dev/kfd open and ioctl syscalls to establish a baseline of legitimate GPU workloads
  • Alert on unexpected privilege-escalation outcomes (new root processes) on hosts with AMD GPUs where no admin activity is scheduled

How to Mitigate CVE-2026-97429

Immediate Actions Required

  • Apply the stable kernel updates containing commits 41144829, ac081dea, and d98c8032 across all affected Linux hosts
  • Restrict access to /dev/kfd so only trusted service accounts and GPU compute workloads can open the device
  • Inventory systems with AMD GPU compute enabled and prioritize patching multi-tenant or shared-compute environments first

Patch Information

The fix adds an is_being_destroyed flag that serializes concurrent destroy paths in destroy_queue_cpsch. Patches are available in the upstream stable tree via the three kernel.org commits listed in the external references. Rebuild and reboot into a kernel that includes these commits, or install the vendor-supplied kernel package that backports them.

Workarounds

  • Where patching is delayed, unload the amdkfd module on hosts that do not require GPU compute: modprobe -r amdkfd
  • Tighten permissions on /dev/kfd using udev rules so only a dedicated GPU group can access the device
  • Disable AMD ROCm / KFD services on general-purpose multi-user systems until patched kernels are deployed
bash
# Example udev rule to restrict /dev/kfd access to the 'render' group
echo 'KERNEL=="kfd", GROUP="render", MODE="0660"' | sudo tee /etc/udev/rules.d/70-kfd.rules
sudo udevadm control --reload-rules
sudo udevadm trigger

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.