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

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

CVE-2026-98519 is a use-after-free flaw in the Linux kernel AMD GPU driver causing runtime PM reference leaks. This article covers the technical details, affected versions, 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-98519 Overview

CVE-2026-98519 is a resource management flaw in the Linux kernel's AMD GPU driver (drm/amdgpu). The amdgpu_debugfs_test_ib_show() function calls pm_runtime_get_sync() to resume the device before taking the reset domain semaphore with down_write_killable(). When the write lock acquisition is interrupted, the function returns without releasing the runtime power management reference. The leaked reference prevents the GPU from entering a low-power state, keeping the hardware awake indefinitely. The issue was resolved by dropping the runtime PM reference on the interrupted error path before returning.

Critical Impact

Local users with access to the amdgpu debugfs interface can trigger a runtime PM reference leak that keeps the GPU powered on, causing energy waste and preventing proper device suspend.

Affected Products

  • Linux kernel versions containing the amdgpu_debugfs_test_ib_show() implementation prior to the fix
  • AMD GPU hardware managed by the drm/amdgpu driver
  • Distributions shipping affected stable kernel branches (see kernel.org stable commits)

Discovery Timeline

  • 2026-10-18 - CVE-2026-98519 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98519

Vulnerability Analysis

The flaw resides in the debugfs handler amdgpu_debugfs_test_ib_show() within the AMD GPU Direct Rendering Manager driver. The function follows a two-step initialization pattern: it first acquires a runtime power management reference via pm_runtime_get_sync() to ensure the device is awake, then attempts to serialize against GPU reset operations by calling down_write_killable() on the reset domain semaphore.

The down_write_killable() variant allows the calling task to be interrupted by a fatal signal while waiting for the lock. When such an interruption occurs, the function returns a non-zero error code and the caller must perform cleanup of previously acquired resources.

Root Cause

The original implementation returned directly from the interrupted lock acquisition without invoking pm_runtime_put_autosuspend(). Each failed invocation incremented the runtime PM usage counter without a matching decrement. Once the counter is non-zero, the kernel's runtime PM core cannot transition the device to a suspended state, defeating power management for the GPU.

Attack Vector

Exploitation requires local access to the system and permission to read the affected debugfs file under /sys/kernel/debug/dri/. An unprivileged user who can read this interface and whose read is interrupted by a signal can repeatedly leak references. The result is sustained GPU power consumption and inability to enter runtime suspend. The vulnerability does not provide code execution, privilege escalation, or memory disclosure. Technical details are available in the kernel.org stable commit log.

Detection Methods for CVE-2026-98519

Indicators of Compromise

  • Unexpected high GPU power draw on systems with AMD graphics while the display is idle
  • /sys/bus/pci/devices/<amdgpu-bdf>/power/runtime_status persistently reporting active instead of suspended
  • Elevated runtime PM usage counter visible under /sys/bus/pci/devices/<amdgpu-bdf>/power/runtime_usage

Detection Strategies

  • Audit kernel package versions across the fleet and compare against the fixed stable release referenced in the kernel.org commits
  • Monitor processes issuing reads against amdgpu debugfs entries, particularly those receiving signals mid-read
  • Correlate GPU thermal and power telemetry with expected idle baselines to identify systems failing to suspend

Monitoring Recommendations

  • Centralize kernel and driver inventory data to flag hosts running pre-fix kernels
  • Alert on repeated interrupted reads of /sys/kernel/debug/dri/*/amdgpu_test_ib entries
  • Track runtime PM state transitions on AMD GPU devices and alert when devices remain in active state for extended idle periods

How to Mitigate CVE-2026-98519

Immediate Actions Required

  • Upgrade to a Linux kernel version that includes the upstream fix referenced in the kernel.org stable commits
  • Restrict access to /sys/kernel/debug to the root user by ensuring debugfs is mounted with mode 0700
  • Disable debugfs mounting on production systems where kernel debugging interfaces are not required

Patch Information

The fix drops the runtime PM reference on the down_write_killable() error path before returning. It was cherry-picked from upstream commit ec30a576c2d4c0364549e6c04218f50704ef56c8 and backported across stable branches. Review the following stable commits and apply the corresponding kernel update: 2556dd3a, 2b86ab1b, 2c1a6439, c28e7439, e016347f, and fc5606ac.

Workarounds

  • Unmount debugfs on systems that do not require it: umount /sys/kernel/debug
  • Prevent non-root users from reading amdgpu debugfs entries by tightening filesystem permissions
  • Avoid running tooling that reads amdgpu_test_ib while subject to signal interruption on unpatched kernels
bash
# Verify running kernel version and debugfs exposure
uname -r
mount | grep debugfs

# Restrict debugfs access to root only
mount -o remount,mode=700 /sys/kernel/debug

# Inspect runtime PM state of AMD GPU devices
for dev in /sys/bus/pci/drivers/amdgpu/*/power; do
  [ -d "$dev" ] && echo "$dev" && cat "$dev/runtime_status" "$dev/runtime_usage"
done

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.