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

CVE-2026-97496: Linux Kernel Information Disclosure Vulnerability

CVE-2026-97496 is an information disclosure flaw in the Linux kernel drm/amdkfd driver that allows attackers to leak kernel memory through unbounded copy operations. This post explains its impact, affected versions, 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-97496 Overview

CVE-2026-97496 is an out-of-bounds read vulnerability in the Linux kernel's AMD Kernel Fusion Driver (amdkfd) component. The flaw resides in the get_wave_state() function used by the v9 GPU scheduler, which trusts attacker-controlled values stored in the Memory Queue Descriptor (MQD). A local user with GPU access can exploit the CRIU (Checkpoint/Restore In Userspace) restore path via the AMDKFD_IOC_RESTORE_PROCESS ioctl to trigger an unbounded copy_to_user(), exposing adjacent kernel memory.

Critical Impact

Successful exploitation leaks adjacent GTT and kernel memory, including other queues' MQDs, ring buffers, and KASLR pointers, enabling kernel address space disclosure that can facilitate further privilege escalation.

Affected Products

  • Linux kernel versions containing the vulnerable drm/amdkfd driver with v9 GPU support
  • Systems using AMD discrete and integrated GPUs managed by the Kernel Fusion Driver (KFD)
  • Linux distributions shipping unpatched kernels prior to commits 7ef1444, d9183d9, and ec64668

Discovery Timeline

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

Technical Details for CVE-2026-97496

Vulnerability Analysis

The get_wave_state() function in the AMD Kernel Fusion Driver reads two fields from the Memory Queue Descriptor: cp_hqd_cntl_stack_size and cp_hqd_cntl_stack_offset. These values are normally written by GPU microcode but become attacker-controlled during a CRIU restore operation. The kernel uses these values directly in pointer arithmetic and a subsequent copy_to_user() call without validating them against the actual allocated buffer size.

When offset is greater than size, integer underflow produces a copy length of approximately 4 GiB. When size is set to 1 MiB against a 4 KiB allocation, the kernel copies 1 MiB of adjacent memory into user space. The leaked region can contain other queues' MQDs, ring buffers, and KASLR pointers that undermine kernel address randomization.

Root Cause

The root cause is missing bounds validation on fields sourced from a user-influenced structure. The driver treats MQD contents as trusted even though the CRIU restore path (AMDKFD_IOC_RESTORE_PROCESS with H3) allows userspace to populate them. This is an Out-of-Bounds Read [CWE-125] combined with an Integer Underflow [CWE-191] in length calculation.

Attack Vector

An authenticated local user with permission to access the KFD device node (/dev/kfd) issues the AMDKFD_IOC_RESTORE_PROCESS ioctl with crafted MQD contents. By setting cp_hqd_cntl_stack_offset greater than cp_hqd_cntl_stack_size, or by setting size to a value larger than the actual control-stack buffer allocation, the attacker causes get_wave_state() to copy adjacent kernel memory back to userspace. No special privileges beyond standard GPU render-group membership are required.

The upstream fix clamps cp_hqd_cntl_stack_size to q->ctl_stack_size (the actual allocated buffer size) and clamps cp_hqd_cntl_stack_offset to the clamped size before any arithmetic or copy_to_user() call. See the Linux Kernel Commit 7ef1444 for the complete patch.

Detection Methods for CVE-2026-97496

Indicators of Compromise

  • Unexpected processes invoking AMDKFD_IOC_RESTORE_PROCESS ioctls on /dev/kfd without a legitimate CRIU restore workflow
  • Processes with GPU render-group membership performing checkpoint/restore operations outside of container orchestration tooling
  • Kernel log entries showing unusual KFD queue restore activity or malformed MQD fields

Detection Strategies

  • Audit ioctl calls to the KFD character device using auditd rules targeting /dev/kfd access by non-standard binaries
  • Monitor for processes that read large contiguous regions after issuing KFD restore ioctls, which may indicate memory disclosure attempts
  • Correlate CRIU tool invocations with KFD device access to identify out-of-band checkpoint/restore activity

Monitoring Recommendations

  • Enable kernel audit logging for the ioctl syscall where the target descriptor references the AMD KFD device
  • Track processes added to the render and video groups and alert on new members outside expected service accounts
  • Deploy eBPF-based telemetry to capture copy_to_user() call patterns originating from the amdgpu/amdkfd modules

How to Mitigate CVE-2026-97496

Immediate Actions Required

  • Apply the upstream kernel patches referenced in commits 7ef1444, d9183d9, and ec64668 or upgrade to a distribution kernel that includes them
  • Restrict membership in the render and video groups to trusted users and service accounts that require GPU compute access
  • Disable or restrict CRIU checkpoint/restore functionality in environments that do not require it, particularly on multi-tenant systems

Patch Information

The fix is available in three stable Linux kernel commits: Linux Kernel Commit 7ef1444, Linux Kernel Commit d9183d9, and Linux Kernel Commit ec64668. The patch clamps both cp_hqd_cntl_stack_size and cp_hqd_cntl_stack_offset to the allocated buffer size q->ctl_stack_size before any arithmetic or user-space copy occurs.

Workarounds

  • Remove access permissions to /dev/kfd for untrusted local users by tightening device node ownership and ACLs
  • Unload the amdkfd kernel module on systems that do not use ROCm or GPU compute workloads
  • Use mandatory access control (SELinux, AppArmor) policies to restrict AMDKFD_IOC_RESTORE_PROCESS ioctl invocation to authorized container runtimes only

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.