CVE-2026-74555
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
19/08/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
scsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race<br />
<br />
Commit fbefe22811c3 ("scsi: libsas: Don&#39;t always drain event workqueue<br />
for HA resume") introduced sas_resume_ha_no_sync() to avoid a deadlock:<br />
the PHYE_RESUME_TIMEOUT handler, running on the HA event workqueue,<br />
calls sas_deform_port() -> sas_destruct_devices(), which removes SCSI<br />
devices and waits for the host to become runtime-active. But the host<br />
cannot resume until sas_resume_ha() -> sas_drain_work() returns, and the<br />
drain is blocked on that very handler.<br />
<br />
However skipping the drain reintroduces a race: hisi_sas returns from<br />
resume before all PHY UP work and libsas discovery work finish. The<br />
controller may then autosuspend while disks are still waking up. The<br />
disks issue IO to a suspended controller, the IO fails, and the disks<br />
get disabled.<br />
<br />
Fix the deadlock at its source by moving the PHYE_RESUME_TIMEOUT<br />
notification to after sas_drain_work(). By then the host resume is about<br />
to complete, so device removal through device_link no longer blocks on<br />
the resume and the cycle is broken.<br />
<br />
With the deadlock gone, restore sas_resume_ha() (the draining variant)<br />
in hisi_sas and remove sas_resume_ha_no_sync().<br />
<br />
The reorder is safe for the other libsas consumers (isci, pm8001,<br />
aic94xx, mvsas). During suspend, sas_suspend_devices() calls<br />
sas_notify_lldd_dev_gone() for each device, which sets dev->lldd_dev to<br />
NULL. When scsi_unblock_requests re-enables I/O in resume, any I/O to a<br />
timed-out phy&#39;s disk is immediately rejected by the LLDD before reaching<br />
hardware: isci returns SAS_DEVICE_UNKNOWN (mapped to DID_BAD_TARGET),<br />
and pm8001 returns SAS_PHY_DOWN (mapped to DID_NO_CONNECT). Both<br />
complete directly via scsi_done() without entering SCSI EH. This is<br />
identical in both the old and new ordering since lldd_dev_gone runs<br />
during suspend, before resume. The reorder only affects when the<br />
PHYE_RESUME_TIMEOUT handler runs (synchronized by sas_drain_work()<br />
vs. asynchronous after resume returns), not whether I/O can reach the<br />
device. aic94xx and mvsas do not register any PM ops and never reach<br />
this code path.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/09357f067122e2e28ec52e27013a1660a1571618
- https://git.kernel.org/stable/c/3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845
- https://git.kernel.org/stable/c/9e24b47ef81d43b3fb1b14294f09991640c79fcc
- https://git.kernel.org/stable/c/b9c44a14062093e9fc2d6bddc696cfceadb482d7
- https://git.kernel.org/stable/c/c391b5899dd46485a5893696c12ae3e95a3a7325
- https://git.kernel.org/stable/c/e50a6523a603594a6d92cdecfe11997d639410a3


