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

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

CVE-2026-97989 is a use-after-free vulnerability in the Linux kernel vduse subsystem affecting virtqueue alignment validation. This flaw can lead to null pointer dereference attacks. This article covers technical details, affected versions, impact assessment, 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-97989 Overview

CVE-2026-97989 is a null pointer dereference vulnerability in the Linux kernel's VDUSE (vDPA Device in Userspace) subsystem. The flaw resides in vduse_validate_config(), which only checks the upper bound of the vq_align virtqueue alignment value. Invalid alignment values, including zero and non-power-of-two values, can reach vring_create_virtqueue_map() and corrupt the virtio ring layout. A zero alignment causes vring_init() to leave the used ring pointer NULL, triggering a KASAN-detected null pointer dereference in virtqueue_kick_prepare_split() when the virtio-net device is opened.

Critical Impact

A local user with permission to create VDUSE devices can trigger a kernel null pointer dereference by supplying a crafted virtqueue alignment value, resulting in a denial of service.

Affected Products

  • Linux kernel versions containing the VDUSE subsystem prior to commits c3c3b08 and fa2c25b4
  • Distributions shipping affected mainline and stable kernels with VDUSE enabled
  • Systems that expose VDUSE device creation to userspace

Discovery Timeline

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

Technical Details for CVE-2026-97989

Vulnerability Analysis

The VDUSE subsystem allows userspace to emulate vDPA (virtio Data Path Acceleration) devices. During device configuration, vduse_validate_config() sanitizes device parameters before they reach the virtio ring helpers. The function enforces an upper bound on vq_align but omits validation of the lower bound and the power-of-two constraint required by the split-ring helpers.

The split-ring helpers compute offsets using align - 1 as a bit mask. This arithmetic produces coherent results only when align is a non-zero power of two. When vq_align is zero, vring_size() drops the descriptor and available-ring regions, and vring_init() fails to assign a valid used ring pointer. Opening a virtio-net device created with vq_align=0 triggers a KASAN report for a two-byte read at address 0x0 inside virtqueue_kick_prepare_split().

Root Cause

The root cause is incomplete input validation in vduse_validate_config(). The virtio specification requires the used ring to start at an address aligned to at least VRING_USED_ALIGN_SIZE (4 bytes). The pre-patch validator accepted alignment values below this threshold and non-power-of-two values, allowing malformed layouts to propagate into vring_create_virtqueue_map().

Attack Vector

Exploitation requires local access and the ability to create or configure a VDUSE device. An attacker supplies a crafted vq_align value of zero or a non-power-of-two integer during device configuration. When any component subsequently opens the resulting virtio-net device, the kernel dereferences a NULL used-ring pointer. The call path observed by KASAN proceeds through __dev_open → virtnet_open → try_fill_recv → virtqueue_kick_prepare → virtqueue_kick_prepare_split, producing a kernel crash and denial of service.

No verified public exploit code is available. The vulnerability is described in prose only. Refer to the upstream patches for the exact validation logic added by the fix: Kernel Patch c3c3b08 and Kernel Patch fa2c25b4.

Detection Methods for CVE-2026-97989

Indicators of Compromise

  • Kernel oops or KASAN report citing null-ptr-deref in virtqueue_kick_prepare_split
  • Call traces originating from virtnet_open and try_fill_recv immediately after a VDUSE device is instantiated
  • Unexpected VDUSE device creation events from unprivileged or non-administrative users

Detection Strategies

  • Monitor /dev/vduse/control and VDUSE netlink interactions for device creation requests with anomalous configuration parameters
  • Capture and inspect kernel ring buffer output (dmesg) for KASAN reports referencing virtio ring helper functions
  • Audit syscalls that invoke VDUSE_CREATE_DEV ioctls and correlate the calling process with expected virtualization management agents

Monitoring Recommendations

  • Forward kernel log events to a centralized log store and alert on BUG: KASAN and null-ptr-deref strings
  • Track crashes of network-related tasks such as systemd-network that coincide with VDUSE device activity
  • Baseline the set of processes authorized to issue VDUSE ioctls and flag deviations

How to Mitigate CVE-2026-97989

Immediate Actions Required

  • Apply the upstream kernel patches c3c3b08 and fa2c25b4 to validate vq_align before it reaches the virtio ring helpers
  • Restrict access to /dev/vduse/control to trusted virtualization management accounts only
  • Unload the vduse kernel module on systems that do not require userspace vDPA emulation

Patch Information

The fix rejects vq_align values below VRING_USED_ALIGN_SIZE and any non-power-of-two values inside vduse_validate_config(). See Kernel Patch c3c3b08 and Kernel Patch fa2c25b4 for the authoritative changes. Rebuild and redeploy kernels incorporating both commits, then reboot affected hosts.

Workarounds

  • Disable the vduse module via modprobe -r vduse and blacklist it in /etc/modprobe.d/ where VDUSE is not required
  • Enforce CAP_SYS_ADMIN or namespace restrictions on processes that interact with VDUSE control interfaces
  • Apply Linux Security Module policies (SELinux, AppArmor) to confine VDUSE device creation to approved virtualization daemons
bash
# Disable and blacklist the VDUSE module on hosts that do not require it
sudo modprobe -r vduse
echo "blacklist vduse" | sudo tee /etc/modprobe.d/disable-vduse.conf
sudo update-initramfs -u

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.