CVE-2023-54324: dm: fix a race condition in retrieve_deps
In the Linux kernel, the following vulnerability has been resolved:
dm: fix a race condition in retrievedeps
There's a race condition in the multipath target when retrievedeps races with multipathmessage calling dmgetdevice and dmputdevice. retrievedeps walks the list of open devices without holding any lock but multipath may add or remove devices to the list while it is running. The end result may be memory corruption or use-after-free memory access.
See this description of a UAF with multipathmessage(): https://listman.redhat.com/archives/dm-devel/2022-October/052373.html
Fix this bug by introducing a new rw semaphore "deviceslock". We grab deviceslock for read in retrievedeps and we grab it for write in dmgetdevice and dmputdevice.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Introduce a read/write semaphore named devices_lock; acquire it for read in retrieve_deps and for write in dm_get_device and dm_put_device.
Event History
Frequently Asked Questions
What is the severity of CVE-2023-54324?
CVE-2023-54324 has a medium severity rating due to its potential exploitation in a race condition.
How do I fix CVE-2023-54324?
To fix CVE-2023-54324, update your Linux kernel to the latest version that includes the patch for this vulnerability.
What systems are affected by CVE-2023-54324?
CVE-2023-54324 affects various versions of the Linux kernel as it pertains to the multipath target functionality.
What type of vulnerability is CVE-2023-54324?
CVE-2023-54324 is classified as a race condition vulnerability.
Can CVE-2023-54324 lead to system compromise?
Yes, if exploited, CVE-2023-54324 could potentially lead to system compromise by causing inconsistencies in device management.