{"id":"CVE-2026-74555","state":"PUBLISHED","title":"scsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race\n\nCommit fbefe22811c3 (\"scsi: libsas: Don't always drain event workqueue\nfor HA resume\") introduced sas_resume_ha_no_sync() to avoid a deadlock:\nthe PHYE_RESUME_TIMEOUT handler, running on the HA event workqueue,\ncalls sas_deform_port() -> sas_destruct_devices(), which removes SCSI\ndevices and waits for the host to become runtime-active. But the host\ncannot resume until sas_resume_ha() -> sas_drain_work() returns, and the\ndrain is blocked on that very handler.\n\nHowever skipping the drain reintroduces a race: hisi_sas returns from\nresume before all PHY UP work and libsas discovery work finish. The\ncontroller may then autosuspend while disks are still waking up. The\ndisks issue IO to a suspended controller, the IO fails, and the disks\nget disabled.\n\nFix the deadlock at its source by moving the PHYE_RESUME_TIMEOUT\nnotification to after sas_drain_work(). By then the host resume is about\nto complete, so device removal through device_link no longer blocks on\nthe resume and the cycle is broken.\n\nWith the deadlock gone, restore sas_resume_ha() (the draining variant)\nin hisi_sas and remove sas_resume_ha_no_sync().\n\nThe reorder is safe for the other libsas consumers (isci, pm8001,\naic94xx, mvsas). During suspend, sas_suspend_devices() calls\nsas_notify_lldd_dev_gone() for each device, which sets dev->lldd_dev to\nNULL. When scsi_unblock_requests re-enables I/O in resume, any I/O to a\ntimed-out phy's disk is immediately rejected by the LLDD before reaching\nhardware: isci returns SAS_DEVICE_UNKNOWN (mapped to DID_BAD_TARGET),\nand pm8001 returns SAS_PHY_DOWN (mapped to DID_NO_CONNECT). Both\ncomplete directly via scsi_done() without entering SCSI EH. This is\nidentical in both the old and new ordering since lldd_dev_gone runs\nduring suspend, before resume. The reorder only affects when the\nPHYE_RESUME_TIMEOUT handler runs (synchronized by sas_drain_work()\nvs. asynchronous after resume returns), not whether I/O can reach the\ndevice. aic94xx and mvsas do not register any PM ops and never reach\nthis code path.","publishedAt":"2026-08-15T12:28:00.729Z","updatedAt":"2026-08-19T16:38:54.912Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"09357f067122e2e28ec52e27013a1660a1571618","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"e50a6523a603594a6d92cdecfe11997d639410a3","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"c391b5899dd46485a5893696c12ae3e95a3a7325","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"9e24b47ef81d43b3fb1b14294f09991640c79fcc","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"b9c44a14062093e9fc2d6bddc696cfceadb482d7","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/hisi_sas/hisi_sas_v3_hw.c","drivers/scsi/libsas/sas_init.c","include/scsi/libsas.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.151","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.103","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.44","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/hisi_sas/hisi_sas_v3_hw.c","drivers/scsi/libsas/sas_init.c","include/scsi/libsas.h"]}],"references":["https://git.kernel.org/stable/c/09357f067122e2e28ec52e27013a1660a1571618","https://git.kernel.org/stable/c/e50a6523a603594a6d92cdecfe11997d639410a3","https://git.kernel.org/stable/c/c391b5899dd46485a5893696c12ae3e95a3a7325","https://git.kernel.org/stable/c/9e24b47ef81d43b3fb1b14294f09991640c79fcc","https://git.kernel.org/stable/c/b9c44a14062093e9fc2d6bddc696cfceadb482d7","https://git.kernel.org/stable/c/3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74555.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74555","state":"PUBLISHED","datePublished":"2026-08-15T12:28:00.729Z","dateUpdated":"2026-08-19T16:38:54.912Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.916Z"},"containers":{"cna":{"title":"scsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race\n\nCommit fbefe22811c3 (\"scsi: libsas: Don't always drain event workqueue\nfor HA resume\") introduced sas_resume_ha_no_sync() to avoid a deadlock:\nthe PHYE_RESUME_TIMEOUT handler, running on the HA event workqueue,\ncalls sas_deform_port() -> sas_destruct_devices(), which removes SCSI\ndevices and waits for the host to become runtime-active. But the host\ncannot resume until sas_resume_ha() -> sas_drain_work() returns, and the\ndrain is blocked on that very handler.\n\nHowever skipping the drain reintroduces a race: hisi_sas returns from\nresume before all PHY UP work and libsas discovery work finish. The\ncontroller may then autosuspend while disks are still waking up. The\ndisks issue IO to a suspended controller, the IO fails, and the disks\nget disabled.\n\nFix the deadlock at its source by moving the PHYE_RESUME_TIMEOUT\nnotification to after sas_drain_work(). By then the host resume is about\nto complete, so device removal through device_link no longer blocks on\nthe resume and the cycle is broken.\n\nWith the deadlock gone, restore sas_resume_ha() (the draining variant)\nin hisi_sas and remove sas_resume_ha_no_sync().\n\nThe reorder is safe for the other libsas consumers (isci, pm8001,\naic94xx, mvsas). During suspend, sas_suspend_devices() calls\nsas_notify_lldd_dev_gone() for each device, which sets dev->lldd_dev to\nNULL. When scsi_unblock_requests re-enables I/O in resume, any I/O to a\ntimed-out phy's disk is immediately rejected by the LLDD before reaching\nhardware: isci returns SAS_DEVICE_UNKNOWN (mapped to DID_BAD_TARGET),\nand pm8001 returns SAS_PHY_DOWN (mapped to DID_NO_CONNECT). Both\ncomplete directly via scsi_done() without entering SCSI EH. This is\nidentical in both the old and new ordering since lldd_dev_gone runs\nduring suspend, before resume. The reorder only affects when the\nPHYE_RESUME_TIMEOUT handler runs (synchronized by sas_drain_work()\nvs. asynchronous after resume returns), not whether I/O can reach the\ndevice. aic94xx and mvsas do not register any PM ops and never reach\nthis code path."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"09357f067122e2e28ec52e27013a1660a1571618","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"e50a6523a603594a6d92cdecfe11997d639410a3","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"c391b5899dd46485a5893696c12ae3e95a3a7325","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"9e24b47ef81d43b3fb1b14294f09991640c79fcc","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"b9c44a14062093e9fc2d6bddc696cfceadb482d7","versionType":"git"},{"version":"fbefe22811c3140a686e407e114789ebf328a9a2","status":"affected","lessThan":"3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/hisi_sas/hisi_sas_v3_hw.c","drivers/scsi/libsas/sas_init.c","include/scsi/libsas.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.151","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.103","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.44","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/hisi_sas/hisi_sas_v3_hw.c","drivers/scsi/libsas/sas_init.c","include/scsi/libsas.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/09357f067122e2e28ec52e27013a1660a1571618"},{"url":"https://git.kernel.org/stable/c/e50a6523a603594a6d92cdecfe11997d639410a3"},{"url":"https://git.kernel.org/stable/c/c391b5899dd46485a5893696c12ae3e95a3a7325"},{"url":"https://git.kernel.org/stable/c/9e24b47ef81d43b3fb1b14294f09991640c79fcc"},{"url":"https://git.kernel.org/stable/c/b9c44a14062093e9fc2d6bddc696cfceadb482d7"},{"url":"https://git.kernel.org/stable/c/3dbbbf656b850c9c8de05df6ad4a1dfc6ff02845"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-19T16:38:54.912Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.6.151"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.12.103"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.18.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.1.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}