# CVE-2023-54324: dm: fix a race condition in retrieve\_deps

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **Published:** 2025-12-30T12:37:08.337Z
- **Modified:** 2026-06-17T06:47:13.727Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dbf1a719850577bb51fc7512a3972994b797a17b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f6007dce0cd35d634d9be91ef3515a6385dcee16
- Anyone running Linux 2.6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm: fix a race condition in retrieve\_deps

There's a race condition in the multipath target when retrieve\_deps
races with multipath\_message calling dm\_get\_device and dm\_put\_device.
retrieve\_deps 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 multipath\_message():
https://listman.redhat.com/archives/dm-devel/2022-October/052373.html

Fix this bug by introducing a new rw semaphore "devices\_lock". We grab
devices\_lock for read in retrieve\_deps and we grab it for write in
dm\_get\_device and dm\_put\_device.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dbf1a719850577bb51fc7512a3972994b797a17b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f6007dce0cd35d634d9be91ef3515a6385dcee16 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54324. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54324.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dbf1a719850577bb51fc7512a3972994b797a17b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f6007dce0cd35d634d9be91ef3515a6385dcee16; Linux 2.6.12
Fixed in: Linux 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54324 being exploited?

There is no confirmed exploitation: CVE-2023-54324 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-54324?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54324?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dbf1a719850577bb51fc7512a3972994b797a17b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f6007dce0cd35d634d9be91ef3515a6385dcee16; Linux 2.6.12.

### Is there a fix for CVE-2023-54324?

Yes. Fixed in Linux 38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54324?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/dbf1a719850577bb51fc7512a3972994b797a17b>
- other: <https://git.kernel.org/stable/c/38f6e5ae5d9ff4a4050ea6f7b543d5d5a4e087cf>
- other: <https://git.kernel.org/stable/c/f6007dce0cd35d634d9be91ef3515a6385dcee16>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54324>

HTML: <https://flawdb.com/CVE-2023-54324> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54324>
