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

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

CVE-2026-97519 is a use-after-free flaw in the Linux kernel DRM/XE driver that causes null pointer dereference during devcoredump cleanup. This article covers technical details, affected versions, 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-97519 Overview

CVE-2026-97519 is a null pointer dereference vulnerability in the Linux kernel's Intel Xe Direct Rendering Manager (DRM) driver. The flaw resides in the xe_devcoredump_snapshot_free() function, where the ss->gt field may be NULL when a device coredump snapshot was never fully populated. Triggering cleanup without a prior capture causes the kernel to dereference a null pointer during xe_guc_capture_put_matched_nodes(). A related issue in xe_devcoredump_free() invokes cancel_work_sync() on deferred work that was never queued. Both paths can crash the kernel on systems using the Xe graphics driver.

Critical Impact

Local workloads interacting with the Xe DRM device coredump path can trigger a kernel null pointer dereference, causing denial of service on affected Linux systems.

Affected Products

  • Linux kernel builds containing the drm/xe driver prior to the fix
  • Systems using Intel Xe-based GPUs with device coredump enabled
  • Downstream distributions shipping unpatched stable kernels

Discovery Timeline

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

Technical Details for CVE-2026-97519

Vulnerability Analysis

The Xe DRM driver provides device coredump support to capture GPU state after a hang or error. The function xe_devcoredump_snapshot_free() releases resources associated with a snapshot structure, including GuC (Graphics Microcontroller) capture nodes referenced through ss->gt. When cleanup runs before a snapshot is fully populated, ss->gt remains NULL. Passing this value to xe_guc_capture_put_matched_nodes() dereferences the null pointer and triggers a kernel oops. The patch guards the call with IS_ERR_OR_NULL() to handle unpopulated and errored snapshots safely.

A secondary defect lives in xe_devcoredump_free(). The function unconditionally calls cancel_work_sync() on deferred work, but the work is only queued when a coredump was captured. The fix adds a check on coredump->captured before invoking cancellation. Both corrections ship together in the upstream commits referenced below.

Root Cause

The root cause is missing state validation on cleanup paths. The code assumes that any snapshot reaching the free routine was fully initialized and that deferred work was queued. Neither assumption holds when cleanup fires early. This is a classic null pointer dereference ([CWE-476]) in a resource teardown path.

Attack Vector

The condition is reachable through local interactions with the DRM subsystem that trigger coredump teardown without a prior capture. The vulnerability does not provide code execution. The practical impact is a kernel crash and denial of service on hosts running the vulnerable Xe driver.

Verified exploitation code is not publicly available. See the upstream fixes for implementation details: Kernel Git Commit 12ef528 and Kernel Git Commit f5c3144.

Detection Methods for CVE-2026-97519

Indicators of Compromise

  • Kernel oops messages referencing xe_devcoredump_snapshot_free or xe_guc_capture_put_matched_nodes in dmesg or /var/log/kern.log
  • Unexpected GPU driver resets or process terminations tied to the xe module
  • Crash dumps naming cancel_work_sync within the Xe devcoredump cleanup path

Detection Strategies

  • Monitor kernel logs for null pointer dereference stack traces originating in the drm/xe subsystem
  • Audit installed kernel versions against the stable commits 12ef528 and f5c3144 to identify unpatched hosts
  • Correlate GPU workload failures on Intel Xe hardware with kernel ring buffer entries for the Xe driver

Monitoring Recommendations

  • Forward kernel.* syslog facility events to centralized logging for cross-host correlation
  • Alert on repeated Xe driver faults or coredump generation attempts on the same system
  • Track package versions of distribution kernels and flag hosts running pre-patch releases

How to Mitigate CVE-2026-97519

Immediate Actions Required

  • Inventory hosts running Linux kernels with the drm/xe driver loaded, particularly those with Intel Xe GPUs
  • Apply the upstream stable kernel update containing commits 12ef528d78adc8ea4e7e3db594f3bcac327e79fa and f5c3144f783f91d74b4fae84fb8bd7a4edf001f8
  • Restart affected systems after patching to ensure the fixed Xe module is loaded

Patch Information

The fixes are available in the upstream Linux kernel stable tree. Review Kernel Git Commit 12ef528 and Kernel Git Commit f5c3144 for the exact source changes. Distribution maintainers typically backport these commits to supported stable kernel branches.

Workarounds

  • Unload the xe kernel module on systems that do not require Intel Xe GPU acceleration using modprobe -r xe
  • Blacklist the xe driver via /etc/modprobe.d/ on hosts where graphics acceleration is unnecessary, such as headless servers
  • Restrict local user access to systems that cannot be patched immediately to reduce exposure to the cleanup trigger path
bash
# Blacklist the xe driver until patched kernel is deployed
echo "blacklist xe" | sudo tee /etc/modprobe.d/blacklist-xe.conf
sudo update-initramfs -u
sudo reboot

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.