# CVE-2021-47622: scsi: ufs: Fix a deadlock in the error handler

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-07-16T11:29:38.339Z
- **Modified:** 2026-06-17T04:18:11.163Z

## Who should check

- Anyone running Linux \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 493c9e850677df8b4eda150c2364b1c1a72ed724; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< d69d98d8edf90e25e4e09930dd36dd6d09dd6768; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 945c3cca05d78351bba29fa65d93834cb7934c7b; a8d2d45c70c7391386baf7863674f156da56a3d5; \>= 5.4.112, \< 5.5
- Anyone running Linux 5.6

## Description

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

scsi: ufs: Fix a deadlock in the error handler

The following deadlock has been observed on a test setup:

 - All tags allocated

 - The SCSI error handler calls ufshcd\_eh\_host\_reset\_handler()

 - ufshcd\_eh\_host\_reset\_handler() queues work that calls
   ufshcd\_err\_handler()

 - ufshcd\_err\_handler() locks up as follows:

Workqueue: ufs\_eh\_wq\_0 ufshcd\_err\_handler.cfi\_jt
Call trace:
 \_\_switch\_to+0x298/0x5d8
 \_\_schedule+0x6cc/0xa94
 schedule+0x12c/0x298
 blk\_mq\_get\_tag+0x210/0x480
 \_\_blk\_mq\_alloc\_request+0x1c8/0x284
 blk\_get\_request+0x74/0x134
 ufshcd\_exec\_dev\_cmd+0x68/0x640
 ufshcd\_verify\_dev\_init+0x68/0x35c
 ufshcd\_probe\_hba+0x12c/0x1cb8
 ufshcd\_host\_reset\_and\_restore+0x88/0x254
 ufshcd\_reset\_and\_restore+0xd0/0x354
 ufshcd\_err\_handler+0x408/0xc58
 process\_one\_work+0x24c/0x66c
 worker\_thread+0x3e8/0xa4c
 kthread+0x150/0x1b4
 ret\_from\_fork+0x10/0x30

Fix this lockup by making ufshcd\_exec\_dev\_cmd() allocate a reserved
request.

## Affected and fixed versions

- Linux: \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 493c9e850677df8b4eda150c2364b1c1a72ed724; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< d69d98d8edf90e25e4e09930dd36dd6d09dd6768; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 945c3cca05d78351bba29fa65d93834cb7934c7b; a8d2d45c70c7391386baf7863674f156da56a3d5; \>= 5.4.112, \< 5.5 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 5.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47622. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47622.md
Affected: Linux >= 7252a3603015f1fd04363956f4b72a537c9f9c42, < 493c9e850677df8b4eda150c2364b1c1a72ed724; >= 7252a3603015f1fd04363956f4b72a537c9f9c42, < d69d98d8edf90e25e4e09930dd36dd6d09dd6768; >= 7252a3603015f1fd04363956f4b72a537c9f9c42, < 945c3cca05d78351bba29fa65d93834cb7934c7b; a8d2d45c70c7391386baf78636…
Fixed in: Linux 493c9e850677df8b4eda150c2364b1c1a72ed724, Linux 945c3cca05d78351bba29fa65d93834cb7934c7b, Linux 5.5

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.
```

## FAQ

### Is CVE-2021-47622 being exploited?

There is no confirmed exploitation: CVE-2021-47622 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47622?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47622?

Linux \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 493c9e850677df8b4eda150c2364b1c1a72ed724; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< d69d98d8edf90e25e4e09930dd36dd6d09dd6768; \>= 7252a3603015f1fd04363956f4b72a537c9f9c42, \< 945c3cca05d78351bba29fa65d93834cb7934c7b; a8d2d45c70c7391386baf7863674f156da56a3d5; \>= 5.4.112, \< 5.5; Linux 5.6.

### Is there a fix for CVE-2021-47622?

Yes. Fixed in Linux 493c9e850677df8b4eda150c2364b1c1a72ed724, Linux 945c3cca05d78351bba29fa65d93834cb7934c7b, Linux 5.5. Upgrade Linux to 5.5 or later.

### How do I check if I'm affected by CVE-2021-47622?

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.

## References

- patch: <https://git.kernel.org/stable/c/493c9e850677df8b4eda150c2364b1c1a72ed724>
- patch: <https://git.kernel.org/stable/c/d69d98d8edf90e25e4e09930dd36dd6d09dd6768>
- patch: <https://git.kernel.org/stable/c/945c3cca05d78351bba29fa65d93834cb7934c7b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47622>

HTML: <https://flawdb.com/CVE-2021-47622> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47622>
