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

CVE-2026-97988: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97988 is a privilege escalation flaw in the Linux kernel vhost subsystem that occurs during IOTLB transitions. This post explains the technical details, affected versions, impact, 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-97988 Overview

CVE-2026-97988 is a Linux kernel vulnerability in the vhost subsystem affecting how virtual ring (vring) access is handled during Input/Output Translation Lookaside Buffer (IOTLB) transitions. When the VIRTIO_F_ACCESS_PLATFORM feature changes, cached vring pointers and IOTLB metadata become interpreted in a different address space. Keeping these mappings across the transition leaves stale ring references in use. A worker thread can also observe a transient NULL d->iotlb and incorrectly fall back to d->umem while translating a descriptor, resulting in mixed address space mappings.

Critical Impact

Stale vring mappings and race conditions during IOTLB transitions in vhost-net and vhost-vsock can lead to use of incorrect address translations, potentially impacting guest-host isolation in virtualized environments.

Affected Products

  • Linux kernel vhost subsystem
  • vhost-net driver
  • vhost-vsock driver

Discovery Timeline

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

Technical Details for CVE-2026-97988

Vulnerability Analysis

The vulnerability resides in the vhost kernel subsystem, which provides in-kernel virtio device emulation for KVM guests. The VIRTIO_F_ACCESS_PLATFORM feature bit controls whether a device uses platform-provided address translation (IOTLB-based) or direct memory access via d->umem. Toggling this feature mid-flight changes the semantic meaning of cached vring pointers without invalidating them.

Worker threads translating descriptors can race with the IOTLB clearing operation. If d->iotlb is cleared before virtqueue (VQ) locks are taken, a worker may observe a NULL d->iotlb and fall back to d->umem for translation, mixing address spaces. The fix introduces a vhost_clear_device_iotlb() helper that takes all VQ mutexes in index order before dropping the device-wide IOTLB.

Root Cause

The root cause is a race condition [TOCTOU-class] combined with improper cache invalidation during feature negotiation transitions. Cached vring descriptor, available ring, and used ring pointers (desc, avail, used) remained valid across address space changes. The vhost_vq_invalidate_access() helper now clears all three together and treats the VQ as invalidated only when all three are NULL, since a single Guest I/O Virtual Address (GIOVA) may legitimately be zero.

Attack Vector

Exploitation requires local access to a system running vhost-net or vhost-vsock with the ability to influence VIRTIO_F_ACCESS_PLATFORM feature negotiation. A privileged userspace component controlling the vhost device could trigger the transition at a time that races with in-flight descriptor processing. The vulnerability manifests in virtualized environments where guest isolation depends on correct IOTLB-mediated translations. See the upstream commits 4a454af and e4f4761 for the complete fix.

Detection Methods for CVE-2026-97988

Indicators of Compromise

  • Unexpected guest-to-host memory access errors in dmesg output related to vhost-net or vhost-vsock operations.
  • Kernel warnings or crashes referencing vring translation failures after virtio feature renegotiation events.

Detection Strategies

  • Audit running kernel versions across virtualization hosts to identify systems missing the upstream vhost_clear_device_iotlb() fix.
  • Monitor kernel logs for anomalies in vhost worker threads, particularly around IOTLB message handling and descriptor translation.
  • Correlate guest VM lifecycle events with host kernel warnings to identify race-triggered conditions.

Monitoring Recommendations

  • Enable kernel tracing (ftrace) on vhost_* functions in environments where feature renegotiation is observed.
  • Track package versions of kernel updates across virtualization fleets using configuration management telemetry.
  • Alert on unexpected guest VM crashes or reboots on hosts running pre-patch kernel versions.

How to Mitigate CVE-2026-97988

Immediate Actions Required

  • Apply the upstream Linux kernel patches from commits 4a454af and e4f4761 once available in your distribution.
  • Prioritize patching on virtualization hosts running untrusted guests or multi-tenant workloads.
  • Review the kernel update cadence for all KVM/QEMU hosts using vhost-net or vhost-vsock.

Patch Information

The fix adds a common vhost_clear_device_iotlb() helper for vhost-net and vhost-vsock. It takes all VQ mutexes in index order before dropping the device-wide IOTLB, invalidates each VQ's cached ring access and metadata, clears pending IOTLB messages, and frees the old table after the handoff. This serializes the transition with workers and prevents mixed address space mappings. Monitor your Linux distribution vendor advisories for backported stable kernel releases.

Workarounds

  • Avoid dynamic toggling of VIRTIO_F_ACCESS_PLATFORM for running vhost devices where feasible.
  • Restrict access to userspace components that control vhost device configuration to trusted administrators only.
  • Consider isolating high-value guest workloads on patched hosts until all virtualization infrastructure is updated.
bash
# Verify kernel version on virtualization hosts
uname -r

# Check loaded vhost modules
lsmod | grep vhost

# Review kernel log for vhost-related messages
dmesg | grep -i vhost

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.