# CVE-2024-38600: ALSA: Fix deadlocks with kctl removals at disconnection

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-06-19T13:45:48.635Z
- **Modified:** 2026-06-17T07:40:41.123Z

## Who should check

- Anyone running Linux \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< ff80185e7b7b547a0911fcfc8aefc61c3e8304d7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< c2fb439f4f1425a961d20bec818fed2c2d9ef70a; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 2f103287ef7960854808930499d1181bd0145d68; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 88ce3fe255d58a93624b467af036dc3519f309c7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 6b55e879e7bd023a03888fc6c8339edf82f576f4; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 87988a534d8e12f2e6fc01fe63e6c1925dc5307c
- Anyone running Linux 5.14

## Description

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

ALSA: Fix deadlocks with kctl removals at disconnection

In snd\_card\_disconnect(), we set card-\>shutdown flag at the beginning,
call callbacks and do sync for card-\>power\_ref\_sleep waiters at the
end.  The callback may delete a kctl element, and this can lead to a
deadlock when the device was in the suspended state.  Namely:

\* A process waits for the power up at snd\_power\_ref\_and\_wait() in
  snd\_ctl\_info() or read/write() inside card-\>controls\_rwsem.

\* The system gets disconnected meanwhile, and the driver tries to
  delete a kctl via snd\_ctl\_remove\*(); it tries to take
  card-\>controls\_rwsem again, but this is already locked by the
  above.  Since the sleeper isn't woken up, this deadlocks.

An easy fix is to wake up sleepers before processing the driver
disconnect callbacks but right after setting the card-\>shutdown flag.
Then all sleepers will abort immediately, and the code flows again.

So, basically this patch moves the wait\_event() call at the right
timing.  While we're at it, just to be sure, call wait\_event\_all()
instead of wait\_event(), although we don't use exclusive events on
this queue for now.

## Affected and fixed versions

- Linux: \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< ff80185e7b7b547a0911fcfc8aefc61c3e8304d7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< c2fb439f4f1425a961d20bec818fed2c2d9ef70a; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 2f103287ef7960854808930499d1181bd0145d68; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 88ce3fe255d58a93624b467af036dc3519f309c7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 6b55e879e7bd023a03888fc6c8339edf82f576f4; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 87988a534d8e12f2e6fc01fe63e6c1925dc5307c (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 87988a534d8e12f2e6fc01fe63e6c1925dc5307c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-38600.md
Affected: Linux >= e94fdbd7b25d87e64688bb109e2c550217a4c879, < ff80185e7b7b547a0911fcfc8aefc61c3e8304d7; >= e94fdbd7b25d87e64688bb109e2c550217a4c879, < c2fb439f4f1425a961d20bec818fed2c2d9ef70a; >= e94fdbd7b25d87e64688bb109e2c550217a4c879, < 2f103287ef7960854808930499d1181bd0145d68; >= e94fdbd7b25d87e64688bb1…
Fixed in: Linux 2f103287ef7960854808930499d1181bd0145d68, Linux 88ce3fe255d58a93624b467af036dc3519f309c7, Linux 6b55e879e7bd023a03888fc6c8339edf82f576f4, Linux 87988a534d8e12f2e6fc01fe63e6c1925dc5307c

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-2024-38600 being exploited?

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

### How serious is CVE-2024-38600?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-38600?

Linux \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< ff80185e7b7b547a0911fcfc8aefc61c3e8304d7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< c2fb439f4f1425a961d20bec818fed2c2d9ef70a; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 2f103287ef7960854808930499d1181bd0145d68; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 88ce3fe255d58a93624b467af036dc3519f309c7; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 6b55e879e7bd023a03888fc6c8339edf82f576f4; \>= e94fdbd7b25d87e64688bb109e2c550217a4c879, \< 87988a534d8e12f2e6fc01fe63e6c1925dc5307c; Linux 5.14.

### Is there a fix for CVE-2024-38600?

Yes. Fixed in Linux 2f103287ef7960854808930499d1181bd0145d68, Linux 88ce3fe255d58a93624b467af036dc3519f309c7, Linux 6b55e879e7bd023a03888fc6c8339edf82f576f4, Linux 87988a534d8e12f2e6fc01fe63e6c1925dc5307c. Upgrade Linux to 87988a534d8e12f2e6fc01fe63e6c1925dc5307c or later.

### How do I check if I'm affected by CVE-2024-38600?

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

- patch: <https://git.kernel.org/stable/c/ff80185e7b7b547a0911fcfc8aefc61c3e8304d7>
- patch: <https://git.kernel.org/stable/c/c2fb439f4f1425a961d20bec818fed2c2d9ef70a>
- patch: <https://git.kernel.org/stable/c/2f103287ef7960854808930499d1181bd0145d68>
- patch: <https://git.kernel.org/stable/c/88ce3fe255d58a93624b467af036dc3519f309c7>
- patch: <https://git.kernel.org/stable/c/6b55e879e7bd023a03888fc6c8339edf82f576f4>
- patch: <https://git.kernel.org/stable/c/87988a534d8e12f2e6fc01fe63e6c1925dc5307c>

## 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-2024-38600>

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