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

CVE-2026-93781: Linux Kernel SCSI Core DOS Vulnerability

CVE-2026-93781 is a denial of service flaw in Linux kernel SCSI core that causes deadlocks during error handling operations. This article covers 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-93781 Overview

CVE-2026-93781 is a Linux kernel vulnerability in the Small Computer System Interface (SCSI) core subsystem. The flaw resides in scsi_eh_lock_door(), which is invoked from scsi_restart_operations() while the host remains in the SHOST_RECOVERY state. The function calls scsi_alloc_request() without flags, allowing blk_mq_get_tag() to block indefinitely when all scheduler tags are already in use by requeued commands. This produces a circular dependency between the error handler thread and commands awaiting queue restart. On devices with a single driver tag, such as USB storage, this becomes a guaranteed deadlock that stalls all I/O until the system is reset.

Critical Impact

Local attackers or faulty hardware triggering SCSI error recovery can induce a permanent I/O deadlock on single-tag devices such as USB mass storage, resulting in denial of service.

Affected Products

  • Linux kernel SCSI core subsystem (drivers/scsi/scsi_error.c)
  • Systems using single driver tag SCSI devices, including USB mass storage
  • Stable kernel branches referenced in the upstream commits

Discovery Timeline

  • 2026-09-24 - CVE-2026-93781 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-93781

Vulnerability Analysis

The defect is a kernel-level deadlock introduced by resource allocation ordering in the SCSI error handling path. When the SCSI mid-layer enters error recovery, it transitions the host to the SHOST_RECOVERY state and flushes pending commands via scsi_eh_flush_done_q(). Those commands are requeued and continue to hold their scheduler tags until queues are restarted.

scsi_eh_lock_door() is called later in scsi_restart_operations(), before the host transitions back to SHOST_RUNNING. Because the function requests a new tag without BLK_MQ_REQ_NOWAIT, blk_mq_get_tag() waits for a tag that cannot be released until the error handler itself finishes restarting the queues. The error handler thread therefore waits on itself.

Root Cause

The root cause is improper synchronization between tag allocation and queue state transitions during SCSI error recovery. The door-lock request is a best-effort operation, yet it was issued with blocking semantics while holding progress of the recovery path. This classifies as a deadlock condition arising from a resource ordering violation in kernel error handling logic.

Attack Vector

The condition is reachable whenever SCSI error recovery runs on a host with limited driver tags and queued commands occupying the tag pool. USB storage, which exposes a single driver tag, reproduces the deadlock deterministically. Any workflow that causes a USB mass storage device to enter error recovery, including transient bus errors or malicious device behavior, can wedge kernel I/O threads. There is no remote attack vector; exploitation requires local access to attach or interact with the affected device.

See the upstream fix at Kernel Git Commit 261c80a and additional backports at Kernel Git Commit 732cb6b and Kernel Git Commit dc9e1b6 for the technical implementation.

Detection Methods for CVE-2026-93781

Indicators of Compromise

  • Kernel threads named scsi_eh_* stuck in uninterruptible sleep (D state) for extended periods
  • Hung task warnings in dmesg referencing blk_mq_get_tag, scsi_alloc_request, or scsi_eh_lock_door
  • USB mass storage devices becoming unresponsive after a transient bus error, with I/O requests never completing

Detection Strategies

  • Monitor kernel logs for repeated task scsi_eh_X:Y blocked for more than Z seconds warnings tied to the SCSI error handler
  • Correlate stuck I/O on removable storage with recent SCSI error recovery events
  • Audit kernel versions against the fixed commits to identify hosts still exposed to the deadlock

Monitoring Recommendations

  • Enable hung_task_timeout_secs and route kernel warnings to a central log pipeline
  • Alert on sudden I/O stalls affecting USB or single-tag SCSI devices
  • Track kernel package versions across the fleet and flag unpatched stable branches

How to Mitigate CVE-2026-93781

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits as soon as vendor builds are available
  • Prioritize patching systems that rely on USB mass storage or other single-driver-tag SCSI devices
  • Reboot hosts exhibiting the deadlock, since the condition cannot clear without restarting the affected error handler

Patch Information

The fix passes BLK_MQ_REQ_NOWAIT to scsi_alloc_request() within scsi_eh_lock_door(), so tag allocation fails fast instead of blocking. Because door locking is already treated as best-effort and silently tolerates allocation failure, the change breaks the circular dependency without regressing functionality. The patch is published in the stable kernel tree at Kernel Git Commit 261c80a, with backports at Kernel Git Commit 732cb6b and Kernel Git Commit dc9e1b6.

Workarounds

  • Avoid attaching untrusted or unreliable USB mass storage devices to unpatched hosts
  • Limit workloads that intentionally stress SCSI error recovery on single-tag devices until patches are deployed
  • Where feasible, migrate critical storage workloads to multi-queue capable controllers that are less exposed to the single-tag deadlock
bash
# Verify running kernel against fixed stable commits
uname -r
zcat /proc/config.gz | grep CONFIG_SCSI=
dmesg -T | grep -E 'scsi_eh|blk_mq_get_tag|hung_task'

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.