CVE-2023-52774 s390/dasd: protect device queue against concurrent access
A race condition in the s390/dasd driver allows concurrent access to the device queue, potentially causing a kernel panic and denial of service.
- 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-2023-52774?
CVE-2023-52774 is a medium-severity vulnerability in Linux kernel, published on 21 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/dasd: protect device queue against concurrent access
In dasd_profile_start() the amount of requests on the device queue are counted. The access to the device queue is unprotected against concurrent access. With a lot of parallel I/O, especially with alias devices enabled, the device queue can change while dasd_profile_start() is accessing the queue. In the worst case this leads to a kernel panic due to incorrect pointer accesses.
Fix this by taking the device lock before accessing the queue and counting the requests. Additionally the check for a valid profile data pointer can be done earlier to avoid unnecessary locking in a hot path.
Weakness: CWE-476
Which versions are affected by CVE-2023-52774?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52774?
Apply the vendor's patch.
Is CVE-2023-52774 being exploited?
There is no known exploitation of CVE-2023-52774 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52774, DEBIAN-CVE-2023-52774, GHSA-2j3v-48pv-mvcj, UBUNTU-CVE-2023-52774.