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

CVE-2026-97497: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97497 is a privilege escalation vulnerability in the Linux kernel drm/amdkfd subsystem affecting SDMA queue allocation. This post explains the technical details, affected versions, security impact, and mitigation steps.

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-97497 Overview

CVE-2026-97497 is a bounds-checking vulnerability in the Linux kernel's AMD Kernel Fusion Driver (amdkfd). The flaw resides in the allocate_sdma_queue function within the drm/amdkfd subsystem. This function accepts a user-controllable restore_sdma_id parameter used by Checkpoint/Restore in Userspace (CRIU) operations. The kernel failed to validate that the supplied queue identifier was less than the maximum number of System DMA (SDMA) queues. A local user with permission to interact with the AMD GPU compute device can trigger out-of-bounds access to kernel memory. The issue has been resolved in upstream commits 42f2bd5, bfe9a75, and dd2870c.

Critical Impact

Local attackers with GPU device access can trigger out-of-bounds memory access in the kernel, potentially leading to privilege escalation, memory corruption, or denial of service.

Affected Products

  • Linux kernel versions containing the vulnerable drm/amdkfd SDMA queue allocation code
  • Systems with AMD GPU hardware using the AMDKFD compute driver
  • Distributions shipping affected kernel versions prior to patch commits 42f2bd5, bfe9a75, and dd2870c

Discovery Timeline

  • 2026-09-24 - CVE-2026-97497 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-97497

Vulnerability Analysis

The vulnerability affects the allocate_sdma_queue function in the AMD Kernel Fusion Driver (drm/amdkfd). This function supports an optional path where the SDMA queue identifier is specified by the caller rather than selected by the kernel. The caller-specified mode exists to support CRIU, which restores previously assigned queue IDs during process checkpoint restoration.

The kernel did not validate the restore_sdma_id value against the maximum number of available SDMA queues. Supplying an out-of-range queue ID causes the kernel to index SDMA queue state structures beyond their allocated bounds. This results in out-of-bounds read or write operations against kernel data structures associated with queue tracking and scheduling.

The fix adds an explicit bounds check that confirms the supplied ID is less than the maximum queue count before the ID is used.

Root Cause

The root cause is missing input validation on an attacker-influenced integer used as an array index. The allocate_sdma_queue function trusted the restore_sdma_id value supplied via the CRIU restore path without enforcing a maximum-value constraint. This is a classic out-of-bounds access condition caused by improper input validation on a kernel ioctl parameter.

Attack Vector

Exploitation requires local access and the ability to open the AMD KFD device node, which is available to users with appropriate GPU access permissions. An attacker invokes the queue restore interface used by CRIU and passes an SDMA queue ID that exceeds the configured maximum. The kernel then dereferences memory outside the SDMA queue array, corrupting adjacent kernel structures or leaking kernel memory contents. No user interaction is required beyond executing the malicious process.

See the upstream fix for technical details: Kernel Git Commit 42f2bd5, Kernel Git Commit bfe9a75, and Kernel Git Commit dd2870c.

Detection Methods for CVE-2026-97497

Indicators of Compromise

  • Unexpected kernel oops, BUG, or KASAN reports referencing allocate_sdma_queue or amdkfd in dmesg output.
  • Unprivileged processes invoking the AMD KFD ioctl interface with queue restore operations outside normal CRIU workflows.
  • Kernel panics or sudden process termination correlated with activity on /dev/kfd or /dev/dri/renderD* device nodes.

Detection Strategies

  • Enable Kernel Address Sanitizer (KASAN) in test or staging kernels to catch out-of-bounds access against SDMA queue arrays at runtime.
  • Audit kernel logs for crashes referencing drm/amdkfd or kfd_process call stacks following GPU workload execution.
  • Monitor process behavior for non-CRIU binaries issuing KFD ioctls that specify explicit queue identifiers.

Monitoring Recommendations

  • Collect and centralize dmesg and /var/log/kern.log output to a SIEM for correlation of kernel fault patterns.
  • Track package versions of installed kernels across the fleet to identify hosts still running unpatched builds.
  • Alert on repeated process crashes or kernel-mode faults originating from accounts with GPU device access.

How to Mitigate CVE-2026-97497

Immediate Actions Required

  • Update to a Linux kernel build that includes the fix commits 42f2bd5, bfe9a75, or dd2870c from your distribution vendor.
  • Reboot affected systems after kernel upgrade to activate the patched amdkfd module.
  • Inventory hosts with AMD GPU hardware and the amdkfd module loaded to prioritize patching.

Patch Information

The fix is distributed across three stable kernel commits that add a bounds check on restore_sdma_id before it is used to index SDMA queue structures. Reference commits: Kernel Git Commit 42f2bd5, Kernel Git Commit bfe9a75, and Kernel Git Commit dd2870c. Apply the kernel update provided by your Linux distribution's security channel.

Workarounds

  • Restrict access to /dev/kfd and AMD DRI render nodes to trusted users only by tightening group membership and device permissions.
  • Unload the amdkfd kernel module on systems that do not require GPU compute workloads using modprobe -r amdkfd.
  • Disable or block use of CRIU on multi-tenant systems where unprivileged users could exercise the queue restore path.
bash
# Verify kernel version and amdkfd module status
uname -r
lsmod | grep amdkfd

# Restrict access to the AMD KFD device node
chown root:video /dev/kfd
chmod 0660 /dev/kfd

# Optionally unload amdkfd where GPU compute is not required
sudo modprobe -r amdkfd

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.