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

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

CVE-2026-97916 is a use-after-free vulnerability in the Linux kernel accel/ivpu driver that allows firmware to exploit TOCTOU conditions. 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-97916 Overview

CVE-2026-97916 is a Time-of-Check Time-of-Use (TOCTOU) flaw in the Linux kernel's accel/ivpu driver, which supports Intel Neural Processing Unit (NPU) devices. The vulnerability lives in the firmware log parsing path, where metadata fields stored in DMA-shared buffer objects were re-read after validation. The NPU firmware can modify those shared fields between the validation and the subsequent use, causing the host kernel to dereference out-of-bounds addresses while printing logs. The upstream fix snapshots the validated values with READ_ONCE() and passes them explicitly through a new struct ivpu_fw_log_desc, preventing the firmware from influencing already-validated values.

Critical Impact

A compromised or malicious NPU firmware image can trigger out-of-bounds memory reads in the host kernel, enabling potential information disclosure or kernel instability.

Affected Products

  • Linux kernel versions containing the accel/ivpu driver with fw_log_print_buffer() re-reading shared metadata
  • Systems using Intel NPU hardware exposed through the ivpu accelerator driver
  • Distributions shipping affected kernel branches prior to the fixing commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97916 published to the National Vulnerability Database (NVD)
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97916

Vulnerability Analysis

The accel/ivpu driver exposes firmware tracing logs through buffers stored in DMA-shared buffer objects (BOs). Each log region carries a header describing header_size and size, which the host uses to walk the log contents. The function fw_log_from_bo() validates these values before the host begins parsing.

The defect appears in fw_log_print_buffer(), which re-reads log->header_size and log->size directly from the shared memory region after validation completed. Because the NPU firmware can concurrently write to that memory, it can mutate the fields between the check and the use. The host then performs pointer arithmetic with attacker-influenced lengths and dereferences addresses outside the mapped buffer.

This is a classic TOCTOU pattern [CWE-367] combined with an out-of-bounds read [CWE-125] in kernel context. The fix captures validated values once with READ_ONCE() and threads them through a dedicated struct ivpu_fw_log_desc, removing any further reads from untrusted shared memory.

Root Cause

The root cause is a trust boundary violation. Memory writable by firmware was treated as stable kernel-local data across the validation and consumption steps. Re-reading header_size and size from shared memory invalidated the earlier bounds checks.

Attack Vector

Exploitation requires an attacker able to influence NPU firmware behavior, for example through a compromised firmware image, a malicious workload submitted to the NPU, or an exploited firmware bug that permits controlled writes to the shared log region. A successful race leads to out-of-bounds reads inside the kernel when logs are printed, which can disclose adjacent kernel memory or trigger faults. For technical specifics, review the upstream patches in the Linux kernel stable tree.

Detection Methods for CVE-2026-97916

Indicators of Compromise

  • Unexpected kernel oops or page faults originating in fw_log_print_buffer() or neighboring ivpu symbols.
  • Dmesg entries referencing the ivpu driver with malformed sizes, truncated log output, or repeated recovery events.
  • NPU workload crashes correlated with host-side kernel warnings about invalid memory accesses.

Detection Strategies

  • Inventory running kernel versions against the fixing commits referenced in the kernel.org stable updates to identify unpatched hosts.
  • Monitor kernel ring buffer and journald output for ivpu subsystem errors and bounds-check failures.
  • Correlate NPU firmware load events with kernel instability on systems that use Intel NPU acceleration.

Monitoring Recommendations

  • Centralize kernel logs from hosts with NPU hardware and alert on ivpu fault patterns.
  • Track firmware image hashes used to initialize the ivpu device and alert on unapproved versions.
  • Review crash dumps for stack traces that include fw_log_from_bo or fw_log_print_buffer.

How to Mitigate CVE-2026-97916

Immediate Actions Required

  • Apply the upstream Linux kernel patches that introduce struct ivpu_fw_log_desc and use READ_ONCE() for validated metadata.
  • Update to a distribution kernel package that includes the backports listed in the kernel.org stable commits.
  • Restrict access to NPU device nodes so only trusted workloads can submit jobs to the ivpu driver.

Patch Information

Fixes are available in the mainline and stable Linux trees. See the four stable commits: commit 0724afc5, commit 40868f80, commit 8ec3d697, and commit b1555f63. Rebuild or install vendor kernels that include these changes and reboot affected hosts.

Workarounds

  • Unload the ivpu kernel module on systems that do not require NPU acceleration until a patched kernel is deployed.
  • Disable firmware log collection paths that call fw_log_print_buffer() where configuration permits.
  • Limit which users and containers can access /dev/accel/* devices to reduce the attack surface.
bash
# Configuration example: prevent the ivpu driver from loading until patched
echo 'blacklist intel_vpu' | sudo tee /etc/modprobe.d/blacklist-ivpu.conf
echo 'blacklist ivpu'      | sudo tee -a /etc/modprobe.d/blacklist-ivpu.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.