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

CVE-2026-97994: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97994 is a privilege escalation flaw in the Linux kernel's vhost/vdpa component that allows processes to configure queue sizes beyond device limits, leading to out-of-bounds memory access. This post 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-97994 Overview

CVE-2026-97994 is a Linux kernel vulnerability in the vhost/vdpa subsystem. The vhost_vring_set_num() function accepts any non-zero power-of-two queue size that fits in 16 bits. The vhost-vdpa code then passes this value to set_vq_num() without comparing it against get_vq_num_max().

A local process with access to /dev/vhost-vdpa-* can configure a virtqueue larger than the device advertises. On vdpa_sim, the worker walks descriptors beyond the mapped descriptor ring, producing a 16-byte out-of-bounds read in the vringh IOTLB path reported by KASAN.

Critical Impact

Local users with access to vhost-vdpa character devices can trigger out-of-bounds reads in kernel memory, potentially leading to information disclosure or kernel instability.

Affected Products

  • Linux kernel versions containing the vulnerable vhost/vdpa implementation
  • Systems exposing /dev/vhost-vdpa-* character devices
  • Virtualization hosts using vdpa_sim or similar vDPA backends

Discovery Timeline

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

Technical Details for CVE-2026-97994

Vulnerability Analysis

The vulnerability resides in the virtqueue size validation logic within the Linux kernel vhost/vdpa subsystem. The vhost_vring_set_num() helper validates only that the user-supplied queue size is a non-zero power of two that fits within 16 bits. It does not consult the device-reported maximum queue size.

When vhost-vdpa forwards this value to the backend via set_vq_num(), no bounds check against get_vq_num_max() occurs. The backend then operates on a virtqueue descriptor ring sized beyond the memory actually mapped for the device. Worker threads walking the ring read past the valid descriptor region, producing out-of-bounds accesses in copy_from_iotlb, copydesc_iotlb, and vringh_getdesc_iotlb.

KASAN confirmed a 16-byte out-of-bounds read, corresponding to one vring_desc structure, during vdpasim_net_work execution. The impact is primarily kernel information disclosure and potential denial of service on the host.

Root Cause

The root cause is missing input validation [Out-of-Bounds Read]. The ioctl handler does not cache or verify the device's maximum queue size before accepting the user-supplied VHOST_SET_VRING_NUM value. Additionally, querying get_vq_num_max() after SET_NUM may return the current configured size rather than the hardware capability, because some backends derive this value from writable queue-size state.

Attack Vector

An unprivileged local user with access to /dev/vhost-vdpa-* issues the VHOST_SET_VRING_NUM ioctl with a queue size that exceeds the device-advertised maximum. The kernel accepts the oversized value and configures the virtqueue. When the device worker processes descriptors, it reads memory beyond the mapped descriptor ring, leaking kernel data or triggering memory corruption-adjacent faults.

The vulnerability requires local access to the vhost-vdpa device nodes, which are typically restricted to privileged users or virtualization management services. Exploitation is constrained to environments where these device nodes are accessible.

Detection Methods for CVE-2026-97994

Indicators of Compromise

  • KASAN out-of-bounds read reports in kernel logs referencing copy_from_iotlb, copydesc_iotlb, or vringh_getdesc_iotlb
  • Unexpected vdpasim_net_work kernel worker crashes or warnings in dmesg
  • Unusual ioctl calls targeting /dev/vhost-vdpa-* from non-virtualization processes

Detection Strategies

  • Monitor kernel logs for KASAN or slab allocator warnings tied to vhost or vringh code paths
  • Audit access patterns to /dev/vhost-vdpa-* device nodes using Linux audit subsystem rules
  • Track processes invoking VHOST_SET_VRING_NUM ioctls with queue sizes outside typical ranges

Monitoring Recommendations

  • Enable KASAN on test and staging kernels to surface out-of-bounds accesses before production deployment
  • Collect dmesg and /var/log/kern.log to a central logging platform for correlation
  • Alert on new or unexpected processes opening vhost-vdpa character devices

How to Mitigate CVE-2026-97994

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as distribution updates are available
  • Restrict permissions on /dev/vhost-vdpa-* to trusted virtualization management services only
  • Audit which users and containers have been granted access to vhost-vdpa device nodes

Patch Information

The fix caches get_vq_num_max() immediately after reset and invalidates it before reset so that a failed reset leaves SET_NUM disabled. For VHOST_SET_VRING_NUM, the complete vring state is copied once and the same index and size are used for validation, vq->num, and set_vq_num(). Patches are available via the stable kernel tree: Git Kernel Commit 1d09201d, Git Kernel Commit 59522639, Git Kernel Commit 68232102, and Git Kernel Commit ccb1dc7c.

Workarounds

  • Unload the vhost_vdpa and vdpa_sim kernel modules on systems that do not require vDPA functionality
  • Remove read and write access to /dev/vhost-vdpa-* for all non-privileged users and containers
  • Disable vdpa_sim on production hosts where simulated vDPA devices are not needed
bash
# Restrict access to vhost-vdpa device nodes
chmod 0600 /dev/vhost-vdpa-*
chown root:root /dev/vhost-vdpa-*

# Unload vdpa_sim if not required
modprobe -r vdpa_sim_net vdpa_sim

# Prevent automatic loading
echo 'blacklist vdpa_sim' > /etc/modprobe.d/blacklist-vdpa-sim.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.