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

CVE-2026-93782: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-93782 is a privilege escalation vulnerability in the Linux kernel vhost-scsi component that can allow memory corruption during asynchronous command completion. This article covers technical details, security impact, 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-93782 Overview

CVE-2026-93782 is a race condition in the Linux kernel vhost-scsi subsystem. The vhost-scsi driver translates guest response descriptors into userspace iovecs when commands are submitted. Target-core completes those commands asynchronously, so a VHOST_SET_MEM_TABLE ioctl can replace the memory table while an in-flight command still retains response iovecs translated through the old table. If the old mapping is reused after the ioctl returns, command completion can write the response to an unrelated userspace object, corrupting guest or host memory.

Critical Impact

A local attacker with access to a /dev/vhost-scsi handle can trigger memory corruption, enabling privilege escalation or host compromise from a virtualization control plane.

Affected Products

  • Linux kernel versions containing the vhost-scsi driver prior to the fix commits
  • Linux stable branches referenced by commits 22598f55a4c2, 6c1b802e36b0, and 981c97d09c6b
  • Virtualization hosts exposing vhost-scsi to guests (QEMU/KVM deployments)

Discovery Timeline

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

Technical Details for CVE-2026-93782

Vulnerability Analysis

The flaw is a time-of-check to time-of-use (TOCTOU) race between asynchronous SCSI command completion and the VHOST_SET_MEM_TABLE device ioctl. When a guest submits a SCSI command, vhost-scsi resolves guest physical addresses to userspace iovecs using the current memory table. Target-core then processes the command asynchronously and writes the response back through those iovecs upon completion.

If a privileged userspace process issues VHOST_SET_MEM_TABLE to install a new memory table while commands are still in flight, the ioctl handler returns without draining the backend. The outstanding command still holds iovecs pointing into the previous mapping. When the command completes, the write lands at an address that may now belong to an unrelated userspace object, producing cross-mapping memory corruption.

Root Cause

The root cause is the absence of a backend flush in the vhost_dev_ioctl() path for vhost-scsi device ioctls. The driver did not wait for in-flight command completions before allowing the memory table to be replaced. This left stale iovec translations usable by completion handlers after the mapping that produced them was gone.

Attack Vector

Exploitation requires local access to the vhost-scsi character device, typically available to the VMM process (for example, QEMU) or a user with equivalent privileges. The attacker races a stream of SCSI command submissions with VHOST_SET_MEM_TABLE calls to force completion handlers to write into memory now owned by a different object. Depending on the targeted region, this yields host memory corruption, guest escape primitives, or denial of service. The fix flushes the vhost-scsi backend after vhost_dev_ioctl() handles a device ioctl, forcing in-flight commands using the old iovecs to complete before the ioctl returns.

See the upstream patches for implementation detail: Linux kernel commit 22598f55a4c2, commit 6c1b802e36b0, and commit 981c97d09c6b.

Detection Methods for CVE-2026-93782

Indicators of Compromise

  • Unexpected kernel oops, GPF, or BUG: traces referencing vhost_scsi or target_core completion paths
  • Memory corruption or SIGSEGV crashes in QEMU/VMM processes shortly after guest storage reconfiguration
  • SCSI response writes landing in unexpected guest memory regions, detected via guest-side integrity monitors

Detection Strategies

  • Audit kernel ring buffer (dmesg) for vhost-scsi warnings or use-after-free signatures from KASAN-enabled kernels
  • Monitor host processes issuing VHOST_SET_MEM_TABLE ioctls concurrently with active SCSI workloads using strace or eBPF tracing
  • Correlate VMM crashes with recent guest memory topology changes such as hotplug or balloon operations

Monitoring Recommendations

  • Enable kernel crash collection (kdump) on virtualization hosts to capture evidence of race-induced corruption
  • Track kernel versions deployed across the hypervisor fleet and flag hosts running pre-patch builds
  • Alert on anomalous process termination of QEMU/libvirt workers tied to storage reconfiguration events

How to Mitigate CVE-2026-93782

Immediate Actions Required

  • Upgrade the Linux kernel to a stable release containing commits 22598f55a4c2, 6c1b802e36b0, or 981c97d09c6b
  • Restrict access to /dev/vhost-scsi to trusted VMM processes only and verify file permissions
  • Prioritize patching multi-tenant virtualization hosts and systems exposing vhost-scsi to untrusted guests

Patch Information

The upstream fix adds a backend flush after vhost_dev_ioctl() processes a device ioctl, ensuring in-flight vhost-scsi commands using the old iovec translations complete before the ioctl returns. Apply the vendor-provided kernel update from your distribution (Red Hat, SUSE, Ubuntu, Debian, Oracle) once backports are published, or rebuild from the stable tree including the referenced commits.

Workarounds

  • Avoid issuing VHOST_SET_MEM_TABLE while SCSI commands are in flight; quiesce guest I/O before memory topology changes
  • Where feasible, switch workloads to virtio-scsi or virtio-blk backends that do not rely on vhost-scsi until patches are deployed
  • Limit guest-triggered memory hotplug and ballooning on unpatched hosts to reduce race opportunities
bash
# Verify running kernel and confirm vhost-scsi module presence
uname -r
lsmod | grep vhost_scsi

# Restrict access to the vhost-scsi device node
ls -l /dev/vhost-scsi
chmod 0660 /dev/vhost-scsi
chown root:kvm /dev/vhost-scsi

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.