Linux
ALSA: aloop: Fix peer runtime UAF during format-change stop
In the Linux kernel, the following vulnerability has been resolved: ALSA: aloop: Fix peer runtime UAF during format-change stop loopback_check_format() may stop the capture side when playback starts with parameters that no longer match a running capture stream. Commit 826af7fa62e3 ("ALSA: aloop: Fix racy access at PCM trigger") moved the peer lookup under cable->lock, but the actual snd_pcm_stop() still runs after dropping that lock. A concurrent close can clear the capture entry from cable->streams[] and detach or free its runtime while the playback trigger path still holds a stale peer substream pointer. Keep a per-cable count of in-flight peer stops before dropping cable->lock, and make free_cable() wait for those stops before detaching the runtime. This preserves the existing behavior while making the peer runtime lifetime explicit.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < 83bd62fa9620ac98d5d694bde14c50f98c8e7189
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < 345c24b2bcf0923dfae1ab41497351c68214ff76
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < 3727a3541788412c393eec236ad228d72efe19c7
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < d258cdce50ff3e02392917258e81a0ce9555c327
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < 03f52a9c170431e8f10e156b9dc0dae80b3e9198
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < 5d45e34bf001344e2966dabca1897561bbc9e913
- >= 597603d615d2b19a9e451d8cfac24372856a522d, < e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff
Fixed in 83bd62fa9620ac98d5d694bde14c50f98c8e7189, 345c24b2bcf0923dfae1ab41497351c68214ff76, 3727a3541788412c393eec236ad228d72efe19c7, d258cdce50ff3e02392917258e81a0ce9555c327, 03f52a9c170431e8f10e156b9dc0dae80b3e9198, bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c, 5d45e34bf001344e2966dabca1897561bbc9e913, e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff
- 2.6.37
Fixed in 0, 5.10.259, 5.15.210, 6.1.188, 6.6.157, 6.12.88, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to 83bd62fa9620ac98d5d694bde14c50f98c8e7189 or 345c24b2bcf0923dfae1ab41497351c68214ff76 or 3727a3541788412c393eec236ad228d72efe19c7 or d258cdce50ff3e02392917258e81a0ce9555c327 or 03f52a9c170431e8f10e156b9dc0dae80b3e9198 or bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c or 5d45e34bf001344e2966dabca1897561bbc9e913 or e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.188 or 6.6.157 or 6.12.88 or 6.18.27 or 7.0.4 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.