{"id":"DEBIAN-CVE-2024-38600","details":"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-\u003eshutdown flag at the beginning, call callbacks and do sync for card-\u003epower_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-\u003econtrols_rwsem.  * The system gets disconnected meanwhile, and the driver tries to   delete a kctl via snd_ctl_remove*(); it tries to take   card-\u003econtrols_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-\u003eshutdown 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.","modified":"2026-09-15T09:03:08.918055342Z","published":"2024-06-19T14:15:19.990Z","upstream":["CVE-2024-38600"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-38600"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.94-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1","6.1.82-1","6.1.85-1","6.1.90-1","6.1.90-1~bpo11+1","6.1.94-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-38600.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.12-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-38600.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.12-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-38600.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}