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

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

CVE-2026-98144 is a use-after-free vulnerability in the Linux kernel's accel/amdxdna component that causes reference leaks when BO mapping fails. This post covers technical details, affected versions, and mitigation.

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

CVE-2026-98144 is a reference-count leak in the Linux kernel's accel/amdxdna driver, which supports AMD XDNA AI engines. The flaw resides in amdxdna_cmd_set_error(), where the function takes a reference on the first buffer object (BO) of a command chain and drops it at the end. When the intermediate BO mapping fails, the error path returns without releasing the reference, leaking it. The upstream fix ensures the chained BO is properly put when mapping fails.

Critical Impact

A local user can trigger kernel object reference leaks through crafted dma-buf imports and handle recycling, potentially leading to resource exhaustion in the amdxdna accelerator driver.

Affected Products

  • Linux kernel versions containing the accel/amdxdna driver prior to the fix
  • Systems using AMD XDNA AI accelerator hardware
  • Distributions shipping affected mainline kernels pending backport

Discovery Timeline

  • 2026-09-25 - CVE-2026-98144 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98144

Vulnerability Analysis

The vulnerability is a memory/resource leak in the AMD XDNA accelerator driver's command error-handling path. amdxdna_cmd_set_error() resolves the first BO of a command chain by handle, which increments its reference count. The function then establishes a mapping for that BO before performing the error-set operation and releasing the reference at the end.

When the mapping step fails, the function returns early without dropping the previously acquired reference. Each failed invocation permanently leaks a reference to the GEM object. Over repeated attempts, this prevents the object from ever being freed and ties up kernel memory associated with the BO and its backing allocations.

Ordinary workloads do not reach this failure path because aie2_cmdlist_fill_slot() has already called amdxdna_cmd_get_op() on the BO and amdxdna_gem_vmap() has cached its address during submission. The condition becomes reachable when userspace recycles the BO handle: closing the handle after submission and then importing a dma-buf whose exporter implements no vmap onto the same identifier causes amdxdna_gem_get_obj() to return an object that cannot be mapped. The prime_import() path types every import as AMDXDNA_BO_SHARE, which the mapping routine cannot handle.

Root Cause

The root cause is incomplete error-path cleanup in amdxdna_cmd_set_error(). The function acquires a reference on the chained BO but the failure branch bypasses the drm_gem_object_put() call that normally runs at function exit. This is a classic missing-release pattern on a reference-counted kernel object.

Attack Vector

Exploitation requires local access with the ability to open the amdxdna device node and issue ioctls. An unprivileged user with access to the DRM/accel device can submit a command chain, close the originating BO handle, then import a dma-buf lacking vmap support onto the recycled handle id. Triggering amdxdna_cmd_set_error() on that handle drives the mapping failure path and leaks a GEM object reference per attempt. The vulnerability does not provide direct code execution but enables resource exhaustion against the kernel.

No verified public exploit code is available. See the upstream commits referenced below for the corrective patch details.

Detection Methods for CVE-2026-98144

Indicators of Compromise

  • Unexpected growth in kernel slab allocations associated with drm_gem_object or amdxdna BO caches over time
  • Repeated userspace sequences that close a BO handle immediately after command submission and then import a dma-buf onto the same handle id
  • Kernel log entries from the amdxdna driver reporting BO mapping failures tied to AMDXDNA_BO_SHARE imports

Detection Strategies

  • Monitor /proc/slabinfo for sustained growth in DRM/GEM object caches on systems using AMD XDNA accelerators
  • Audit processes invoking ioctls against the amdxdna accel device, correlating handle lifecycle events with dma-buf imports
  • Enable kernel tracepoints on drm_gem_object_put and amdxdna command submission paths to detect imbalance

Monitoring Recommendations

  • Baseline normal memory consumption of workloads using the AMD XDNA driver and alert on unexplained drift
  • Collect dmesg output for amdxdna error messages via a centralized logging pipeline
  • Track per-process GEM handle counts for users with access to accel device nodes

How to Mitigate CVE-2026-98144

Immediate Actions Required

  • Apply the upstream Linux kernel patch that drops the chained BO reference on the mapping-failure path
  • Restrict access to the amdxdna accel device node to trusted users via appropriate group ownership and permissions
  • Rebuild or update kernels on systems with AMD XDNA hardware once distribution packages become available

Patch Information

The fix is available in upstream Linux kernel commits 7e33ba3a1d48c2d20ed270dec9d2d08332585c8e and eb90cb257e0792ac11f0347254bad3fc72417db6. The patch adds the missing drm_gem_object_put() call on the error path of amdxdna_cmd_set_error() so the chained BO reference is released when its mapping fails.

Workarounds

  • Disable or blacklist the amdxdna kernel module on systems where AMD XDNA acceleration is not required
  • Limit access to /dev/accel/* device nodes to specific service accounts via udev rules and group permissions
  • Monitor and recycle long-running processes with access to the accelerator to bound leaked memory until patched
bash
# Restrict access to amdxdna accel device nodes
sudo groupadd -r xdna-users
sudo tee /etc/udev/rules.d/99-amdxdna.rules <<'EOF'
KERNEL=="accel*", SUBSYSTEM=="accel", GROUP="xdna-users", MODE="0660"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger

# Optional: blacklist the module if XDNA is not needed
echo "blacklist amdxdna" | sudo tee /etc/modprobe.d/blacklist-amdxdna.conf

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.