CVE-2024-27009 s390/cio: fix race condition during online processing
A race condition in the Linux kernel s390/cio subsystem can cause device online processing to fail, leaving devices in an inconsistent state and preventing subsequent operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-27009?
CVE-2024-27009 is a medium-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
s390/cio: fix race condition during online processing
A race condition exists in ccw_device_set_online() that can cause the online process to fail, leaving the affected device in an inconsistent state. As a result, subsequent attempts to set that device online fail with return code ENODEV.
The problem occurs when a path verification request arrives after a wait for final device state completed, but before the result state is evaluated.
Fix this by ensuring that the CCW-device lock is held between determining final state and checking result state.
Note that since:
commit 2297791c92d0 ("s390/cio: dont unregister subchannel from child-drivers")
path verification requests are much more likely to occur during boot, resulting in an increased chance of this race condition occurring.
Weakness: CWE-362
Which versions are affected by CVE-2024-27009?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-27009?
Apply the vendor's patch.
Is CVE-2024-27009 being exploited?
There is no known exploitation of CVE-2024-27009 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-27009, DEBIAN-CVE-2024-27009, GHSA-g3g5-xm8m-gp96, UBUNTU-CVE-2024-27009.