CVE-2021-47192
scsi: core: sysfs: Fix hang when device state is set via sysfs
Mitigation
- Upgrade Linux to 5.14 or later.
Who should check
- Anyone running Linux >= 69aa1a1a569f5c6d554b59352130ef363342ed4c, < edd783162bf2385b43de6764f2d4c6e9f4f6be27; >= 711459514e297d748f15ba1f5292a3276c3d1dd0, < a792e0128d232251edb5fdf42fb0f9fbb0b44a73; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < bcc0e3175a976b7fa9a353960808adb0bb49ead8; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f; c6751ce1a2a415a78e4f5b621628da03196b804c; >= 5.4.143, < 5.4.162; >= 5.10.61, < 5.10.82; >= 5.13.13, < 5.14
- Anyone running Linux 5.14
Vulnerability facts
- Affected
- Linux >= 69aa1a1a569f5c6d554b59352130ef363342ed4c, < edd783162bf2385b43de6764f2d4c6e9f4f6be27; >= 711459514e297d748f15ba1f5292a3276c3d1dd0, < a792e0128d232251edb5fdf42fb0f9fbb0b44a73; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < bcc0e3175a976b7fa9a353960808adb0bb49ead8; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f; c6751ce1a2a415a78e4f5b621628da03196b804c; >= 5.4.143, < 5.4.162; >= 5.10.61, < 5.10.82; >= 5.13.13, < 5.14; Linux 5.14
- Fixed in
- Linux 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f, Linux 5.4.162, Linux 5.10.82, Linux 5.14
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 48, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: core: sysfs: Fix hang when device state is set via sysfs This fixes a regression added with: commit f0f82e2476f6 ("scsi: core: Fix capacity set to zero after offlinining device") The problem is that after iSCSI recovery, iscsid will call into the kernel to set the dev's state to running, and with that patch we now call scsi_rescan_device() with the state_mutex held. If the SCSI error handler thread is just starting to test the device in scsi_send_eh_cmnd() then it's going to try to grab the state_mutex. We are then stuck, because when scsi_rescan_device() tries to send its I/O scsi_queue_rq() calls -> scsi_host_queue_ready() -> scsi_host_in_recovery() which will return true (the host state is still in recovery) and I/O will just be requeued. scsi_send_eh_cmnd() will then never be able to grab the state_mutex to finish error handling. To prevent the deadlock move the rescan-related code to after we drop the state_mutex. This also adds a check for if we are already in the running state. This prevents extra scans and helps the iscsid case where if the transport class has already onlined the device during its recovery process then we don't need userspace to do it again plus possibly block that daemon.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 69aa1a1a569f5c6d554b59352130ef363342ed4c, < edd783162bf2385b43de6764f2d4c6e9f4f6be27; >= 711459514e297d748f15ba1f5292a3276c3d1dd0, < a792e0128d232251edb5fdf42fb0f9fbb0b44a73; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < bcc0e3175a976b7fa9a353960808adb0bb49ead8; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f; c6751ce1a2a415a78e4f5b621628da03196b804c; >= 5.4.143, < 5.4.162; >= 5.10.61, < 5.10.82; >= 5.13.13, < 5.14 | — | cvelist |
| Linux | 5.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47192. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47192.md Affected: Linux >= 69aa1a1a569f5c6d554b59352130ef363342ed4c, < edd783162bf2385b43de6764f2d4c6e9f4f6be27; >= 711459514e297d748f15ba1f5292a3276c3d1dd0, < a792e0128d232251edb5fdf42fb0f9fbb0b44a73; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < bcc0e3175a976b7fa9a353960808adb0bb49ead8; >= f0f82e2476f6adb9c7a0135… Fixed in: Linux 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f, Linux 5.4.162, Linux 5.10.82, Linux 5.14 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2021-47192 being exploited?
There is no confirmed exploitation: CVE-2021-47192 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47192?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2021-47192?
Linux >= 69aa1a1a569f5c6d554b59352130ef363342ed4c, < edd783162bf2385b43de6764f2d4c6e9f4f6be27; >= 711459514e297d748f15ba1f5292a3276c3d1dd0, < a792e0128d232251edb5fdf42fb0f9fbb0b44a73; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < bcc0e3175a976b7fa9a353960808adb0bb49ead8; >= f0f82e2476f6adb9c7a0135cfab8091456990c99, < 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f; c6751ce1a2a415a78e4f5b621628da03196b804c; >= 5.4.143, < 5.4.162; >= 5.10.61, < 5.10.82; >= 5.13.13, < 5.14; Linux 5.14.
Is there a fix for CVE-2021-47192?
Yes. Fixed in Linux 4edd8cd4e86dd3047e5294bbefcc0a08f66a430f, Linux 5.4.162, Linux 5.10.82, Linux 5.14. Upgrade Linux to 5.14 or later.
How do I check if I'm affected by CVE-2021-47192?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.