# CVE-2021-47382: s390/qeth: fix deadlock during failing recovery

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-362, CWE-667
- **Published:** 2024-05-21T15:03:43.621Z
- **Modified:** 2026-06-17T04:17:20.463Z

## Who should check

- Anyone running Linux \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< 0bfe741741327822d1482c7edef0184636d08b40; \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62; af0c184ea106051e428b5a0b5f2dfd31cbc54c52; \>= 5.10.8, \< 5.11
- Anyone running Linux 5.11

## Description

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

s390/qeth: fix deadlock during failing recovery

Commit 0b9902c1fcc5 ("s390/qeth: fix deadlock during recovery") removed
taking discipline\_mutex inside qeth\_do\_reset(), fixing potential
deadlocks. An error path was missed though, that still takes
discipline\_mutex and thus has the original deadlock potential.

Intermittent deadlocks were seen when a qeth channel path is configured
offline, causing a race between qeth\_do\_reset and ccwgroup\_remove.
Call qeth\_set\_offline() directly in the qeth\_do\_reset() error case and
then a new variant of ccwgroup\_set\_offline(), without taking
discipline\_mutex.

## Affected and fixed versions

- Linux: \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< 0bfe741741327822d1482c7edef0184636d08b40; \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62; af0c184ea106051e428b5a0b5f2dfd31cbc54c52; \>= 5.10.8, \< 5.11 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 5.11 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-47382. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47382.md
Affected: Linux >= b41b554c1ee75070a14c02a88496b1f231c7eacc, < 0bfe741741327822d1482c7edef0184636d08b40; >= b41b554c1ee75070a14c02a88496b1f231c7eacc, < d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62; af0c184ea106051e428b5a0b5f2dfd31cbc54c52; >= 5.10.8, < 5.11; Linux 5.11
Fixed in: Linux 0bfe741741327822d1482c7edef0184636d08b40, Linux 5.11

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-47382 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< 0bfe741741327822d1482c7edef0184636d08b40; \>= b41b554c1ee75070a14c02a88496b1f231c7eacc, \< d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62; af0c184ea106051e428b5a0b5f2dfd31cbc54c52; \>= 5.10.8, \< 5.11; Linux 5.11.

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

Yes. Fixed in Linux 0bfe741741327822d1482c7edef0184636d08b40, Linux 5.11. Upgrade Linux to 5.11 or later.

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

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/0bfe741741327822d1482c7edef0184636d08b40>
- patch: <https://git.kernel.org/stable/c/d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62>

## 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-47382>

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