4.7medium
s390/qeth: fix deadlock during failing recovery
- Severity
- 4.7medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 5.10.8 before 5.14.10, 5.15 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: s390/qeth: arreglar el punto muerto durante la recuperación fallida. La confirmación 0b9902c1fcc5 ("s390/qeth: arreglar el punto muerto durante la recuperación") se eliminó tomando discipline_mutex dentro de qeth_do_reset(), solucionando posibles puntos muertos. Sin embargo, se omitió una ruta de error que todavía requiere discipline_mutex y, por lo tanto, tiene el potencial de bloqueo original. Se observaron interbloqueos intermitentes cuando la ruta de un canal qeth se configura fuera de línea, lo que provocó una ejecución entre qeth_do_reset y ccwgroup_remove. Llame a qeth_set_offline() directamente en el caso de error qeth_do_reset() y luego a una nueva variante de ccwgroup_set_offline(), sin tomar discipline_mutex.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47382 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2021-47382 changed 2026-06-17 | Public domain |