ALSA: aloop: Fix peer runtime UAF during format-change stop
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.259, 5.15.210, 6.1.188, 6.6.157, 6.12.88, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in 83bd62fa9620ac98d5d694bde14c50f98c8e7189; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in 345c24b2bcf0923dfae1ab41497351c68214ff76; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in 3727a3541788412c393eec236ad228d72efe19c7; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in d258cdce50ff3e02392917258e81a0ce9555c327; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in 03f52a9c170431e8f10e156b9dc0dae80b3e9198; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in 5d45e34bf001344e2966dabca1897561bbc9e913; From 597603d615d2b19a9e451d8cfac24372856a522d · fixed in e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff
- Linux Linux
2.6.37
- KernelLinux
From 2.6.37 · fixed in 5.10.259; From 5.11.0 · fixed in 5.15.210; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.88; From 6.13.0 · fixed in 6.18.27; From 6.19.0 · fixed in 7.0.4
References 8
git.kernel.org
- stable/c/83bd62fa9620ac98d5d694bde14c50f98c8e7189
- stable/c/345c24b2bcf0923dfae1ab41497351c68214ff76
- stable/c/3727a3541788412c393eec236ad228d72efe19c7
- stable/c/d258cdce50ff3e02392917258e81a0ce9555c327
- stable/c/03f52a9c170431e8f10e156b9dc0dae80b3e9198
- stable/c/bdd9503c3d222d2735b56c7a8b4422ccf3de6e5c
- stable/c/5d45e34bf001344e2966dabca1897561bbc9e913
- stable/c/e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff