s390/qeth: fix deadlock during failing recovery
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.14.105.15In 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.
From the CVE record · Linux
An error path in Linux kernel s390/qeth recovery can still take discipline_mutex and deadlock. Intermittent deadlocks were observed when a qeth channel path was configured offline, causing a race between qeth_do_reset and ccwgroup_remove. The input does not identify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels that use s390/qeth should check their kernel versions; affected versions are not specified.