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-98145 Overview
CVE-2026-98145 is a Linux kernel vulnerability in the accel/amdxdna driver for AMD XDNA Neural Processing Units (NPUs). The driver fails to reject command chains with a command_count of zero. Because struct_size(payload, data, 0) equals only the header size, the empty chain passes the payload length check. The subsequent fill loop never executes, leaving offset at zero, and a zero-length buffer is submitted to firmware. On the resulting execution path, drm_clflush_virt_range(cmd_buf, 0) reads the byte before the buffer and faults on the vmap guard page. Any local process able to open the render node can trigger the condition.
Critical Impact
A local user with access to the DRM render node can trigger a kernel fault, resulting in denial of service through an out-of-bounds read on a vmap guard page.
Affected Products
- Linux kernel versions containing the accel/amdxdna driver prior to the fix
- Systems with AMD XDNA NPU hardware exposing /dev/dri/renderD* nodes
- Distributions shipping the vulnerable amdxdna accelerator driver
Discovery Timeline
- 2026-09-25 - CVE-2026-98145 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98145
Vulnerability Analysis
The vulnerability resides in the AMD XDNA accelerator driver's command chain submission path, reachable through the EXEC_CMD ioctl on the DRM render node. The driver accepts a user-supplied payload describing a chain of commands to dispatch to the NPU firmware. The payload length validation uses struct_size(payload, data, 0), which returns only the header size when command_count is zero. An attacker can submit a chain claiming zero commands and bypass this check.
The downstream fill loop iterates over command_count entries. With a count of zero, the loop body never runs and offset remains zero. The driver then proceeds to submit the request with a zero-length buffer. On firmware that lacks AIE2_NPU_COMMAND and terminates at the opcode check, op stays ERT_INVALID_CMD while aie2_get_chain_msg_op() returns MSG_OP_MAX_OPCODE. The function aie2_get_npu_chain_msg_op() always returns MSG_OP_CHAIN_EXEC_NPU, allowing the submission to continue.
Execution reaches drm_clflush_virt_range(cmd_buf, 0). The cache-line flush helper reads one byte before the buffer address to align its operation, which lands on the vmap guard page and faults the kernel. This is an out-of-bounds read [CWE-125] in kernel context.
Root Cause
The root cause is missing input validation. The driver assumes command_count is non-zero and does not explicitly reject empty chains before computing offsets or invoking flush helpers that read from the buffer.
Attack Vector
Any local process with permission to open the DRM render node (/dev/dri/renderD*) can craft and submit the malformed EXEC_CMD request. No special privileges beyond render node access are required. The outcome is a kernel-mode fault leading to denial of service.
No verified proof-of-concept code is published alongside this advisory. Refer to the upstream fix commits for the precise code path and the sanity check that rejects empty chains.
Detection Methods for CVE-2026-98145
Indicators of Compromise
- Kernel oops or page fault entries referencing drm_clflush_virt_range and the amdxdna module in dmesg or /var/log/kern.log
- Unexpected crashes of processes holding handles to /dev/dri/renderD* on systems with AMD XDNA NPUs
- Repeated EXEC_CMD ioctl submissions from unprivileged user accounts to the amdxdna render node
Detection Strategies
- Monitor kernel ring buffer output for faults correlated with amdxdna driver symbols and vmap guard page accesses
- Audit which local users and containers can open DRM render nodes exposed by the amdxdna driver
- Track ioctl syscall telemetry on render node file descriptors to spot anomalous command chain submissions
Monitoring Recommendations
- Enable kernel crash collection (kdump, systemd-coredump) on hosts with AMD NPU hardware to capture fault context
- Forward kernel logs to a central store for correlation of amdxdna-related faults across the fleet
- Baseline the set of processes legitimately using /dev/dri/renderD* and alert on new consumers
How to Mitigate CVE-2026-98145
Immediate Actions Required
- Apply the upstream kernel patches that reject command chains with zero commands in the amdxdna driver
- Restrict access to DRM render nodes so only trusted users and services can issue ioctls to the NPU
- Update to a distribution kernel release that includes the fix once available from your vendor
Patch Information
The fix is published upstream in the Linux kernel stable tree. See Kernel Git Commit ED74E8D and Kernel Git Commit EF6D27A. The patch adds an explicit check that rejects submissions where command_count is zero before any downstream processing occurs.
Workarounds
- Remove or blacklist the amdxdna kernel module on systems that do not require NPU acceleration
- Tighten permissions on /dev/dri/renderD* nodes using udev rules or group membership restrictions
- In container environments, avoid passing the amdxdna render node into untrusted workloads
# Example: blacklist the amdxdna module until a patched kernel is deployed
echo 'blacklist amdxdna' | sudo tee /etc/modprobe.d/blacklist-amdxdna.conf
sudo modprobe -r amdxdna
# Example: restrict render node access to a dedicated group
sudo groupadd npu-users
sudo chown root:npu-users /dev/dri/renderD128
sudo chmod 0660 /dev/dri/renderD128
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

