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

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2024-05-21T15:03:43.621Z
- Modified: 2026-06-17T04:17:20.463Z
- Weaknesses: CWE-362, CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b41b554c1ee75070a14c02a88496b1f231c7eacc before 0bfe741741327822d1482c7edef0184636d08b40; from b41b554c1ee75070a14c02a88496b1f231c7eacc before d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62; af0c184ea106051e428b5a0b5f2dfd31cbc54c52; from 5.10.8 before 5.11; 5.11 (not affected: before 5.11; from 5.14.10 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 5.10.8 before 5.14.10; 5.15

## References

- <https://git.kernel.org/stable/c/0bfe741741327822d1482c7edef0184636d08b40> (patch)
- <https://git.kernel.org/stable/c/d2b59bd4b06d84a4eadb520b0f71c62fe8ec0a62> (patch)

## Sources

- CVE List: [CVE-2021-47382](https://www.cve.org/CVERecord?id=CVE-2021-47382), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2021-47382](https://nvd.nist.gov/vuln/detail/CVE-2021-47382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47382 · Whole record: https://cve.day/CVE-2021-47382.json · Rebuilt by cve.day 2026-11-25T22:58:08.826Z
