Description
In the Linux kernel, the following vulnerability has been resolved:

scsi: core: Do not block on tag allocation in scsi_eh_lock_door()

scsi_eh_lock_door() is called from scsi_restart_operations() while the
host is still in the SHOST_RECOVERY state, i.e. before the host is
switched back to SHOST_RUNNING and scsi_run_host_queues() restarts the
queues. It allocates a request via scsi_alloc_request() with no flags,
so blk_mq_get_tag() may block waiting for a free sched tag when all tags
are already in use.

Those tags can be held by commands that were just requeued by
scsi_eh_flush_done_q() during error handling. Such commands cannot be
dispatched until the host leaves SHOST_RECOVERY and
scsi_run_host_queues() is called - which only happens *after*
scsi_eh_lock_door() returns.

This forms a circular dependency:

- scsi_eh_lock_door(), running in the SCSI error handler thread, waits
for a sched tag held by a requeued command;

- the requeued command cannot complete and release its sched tag until
the error handler thread leaves scsi_restart_operations() and restart
the queues.

For devices with a single driver tag (e.g. USB storage) it is a
guaranteed deadlock and I/O that can never be submitted. This problem
has also been reproduced in our environment.

Locking the door is a best-effort operation, and scsi_eh_lock_door()
already returns silently when the request allocation fails. Pass
BLK_MQ_REQ_NOWAIT to scsi_alloc_request() so the allocation fails
instead of blocking when no tag is available. This breaks the circular
dependency and allows the error handler to finish restarting the queues,
after which the pending commands are dispatched normally.
Published: 2026-09-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via SCSI deadlock
Action: Apply Patch
AI Analysis

Impact

The vulnerability arises because the SCSI error handler calls scsi_eh_lock_door(), which allocates a request without the NONBLOCK flag while the host is still in recovery. When all command tags are occupied by requeued commands, the allocation blocks, creating a circular wait. The error handler then cannot finish restarting the SCSI queues, and the blocked commands can never complete. This results in a deadlock that prevents any I/O from the affected device, causing a denial of service for that device and potentially for the entire system if the lock is critical.

Affected Systems

All Linux kernel builds that include the original scsi_eh_lock_door() implementation. Devices that use a single SCSI tag per driver, such as USB storage devices, are guaranteed deadlock. Kernels older than the upstream patch commit (for example, the one referenced at https://git.kernel.org/stable/c/261c80a6b23e34ba98bcf3f75317e35ecf0a08f0) are affected.

Risk and Exploitability

No EPSS data or KEV listing are available, indicating no known exploits or cataloguing. The issue only manifests during SCSI error recovery and requires a failure condition of the SCSI host. Because it is a local, kernel‑level deadlock, the likelihood of exploitation is low, but the impact on availability is high should the scenario occur. The circular dependency describing the lock and retry logic forms the root cause.

Generated by OpenCVE AI on September 25, 2026 at 07:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the patch to scsi_eh_lock_door() (the patch adds BLK_MQ_REQ_NOWAIT to avoid blocking on tag allocation).
  • If an immediate kernel update is not possible, configure or update the SCSI host driver so that it uses more than one tag and trim the likelihood of all tags being occupied during recovery. This mitigates the guaranteed deadlock for single‑tag drivers.
  • Enable system monitoring for SCSI lockup events and plan a kernel upgrade as soon as the patched version becomes available.

Generated by OpenCVE AI on September 25, 2026 at 07:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 03 Oct 2026 11:15:00 +0000


Fri, 25 Sep 2026 07:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-754

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: core: Do not block on tag allocation in scsi_eh_lock_door() scsi_eh_lock_door() is called from scsi_restart_operations() while the host is still in the SHOST_RECOVERY state, i.e. before the host is switched back to SHOST_RUNNING and scsi_run_host_queues() restarts the queues. It allocates a request via scsi_alloc_request() with no flags, so blk_mq_get_tag() may block waiting for a free sched tag when all tags are already in use. Those tags can be held by commands that were just requeued by scsi_eh_flush_done_q() during error handling. Such commands cannot be dispatched until the host leaves SHOST_RECOVERY and scsi_run_host_queues() is called - which only happens *after* scsi_eh_lock_door() returns. This forms a circular dependency: - scsi_eh_lock_door(), running in the SCSI error handler thread, waits for a sched tag held by a requeued command; - the requeued command cannot complete and release its sched tag until the error handler thread leaves scsi_restart_operations() and restart the queues. For devices with a single driver tag (e.g. USB storage) it is a guaranteed deadlock and I/O that can never be submitted. This problem has also been reproduced in our environment. Locking the door is a best-effort operation, and scsi_eh_lock_door() already returns silently when the request allocation fails. Pass BLK_MQ_REQ_NOWAIT to scsi_alloc_request() so the allocation fails instead of blocking when no tag is available. This breaks the circular dependency and allows the error handler to finish restarting the queues, after which the pending commands are dispatched normally.
Title scsi: core: Do not block on tag allocation in scsi_eh_lock_door()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T10:57:15.829Z

Reserved: 2026-09-18T17:59:28.788Z

Link: CVE-2026-93781

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:10.670

Modified: 2026-10-03T11:17:47.550

Link: CVE-2026-93781

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T07:30:16Z

Weaknesses
  • CWE-754

    Improper Check for Unusual or Exceptional Conditions