ALSA: aloop: Fix racy access at PCM trigger
- 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.270, 5.15.221, 6.1.188, 6.6.157, 6.12.70, and 1 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 racy access at PCM trigger The PCM trigger callback of aloop driver tries to check the PCM state and stop the stream of the tied substream in the corresponding cable. Since both check and stop operations are performed outside the cable lock, this may result in UAF when a program attempts to trigger frequently while opening/closing the tied stream, as spotted by fuzzers. For addressing the UAF, this patch changes two things: • It covers the most of code in loopback_check_format() with cable->lock spinlock, and add the proper NULL checks. This avoids already some racy accesses. • In addition, now we try to check the state of the capture PCM stream that may be stopped in this function, which was the major pain point leading to UAF.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in f57467114f40c5aacebbea96fb4ff9e5cd2b7f18; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in c99be0d5af02adebe9cb6f9869d20397fa9935a3; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in f3ce8be893726899e3053cf8059ecc95d8410359; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in 0e6245b2424d126ac90018142d09f0707e12998b; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in bad15420050db1803767e58756114800cce91ea4; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in 5727ccf9d19ca414cb76d9b647883822e2789c2e; From b1c73fc8e697eb73e23603e465e9af2711ed4183 · fixed in 826af7fa62e347464b1b4e0ba2fe19a92438084f
- Linux Linux
2.6.37
- KernelLinux
From 2.6.37 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; 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.70; From 6.13.0 · fixed in 6.18.10
References 7
git.kernel.org
- stable/c/f57467114f40c5aacebbea96fb4ff9e5cd2b7f18
- stable/c/c99be0d5af02adebe9cb6f9869d20397fa9935a3
- stable/c/f3ce8be893726899e3053cf8059ecc95d8410359
- stable/c/0e6245b2424d126ac90018142d09f0707e12998b
- stable/c/bad15420050db1803767e58756114800cce91ea4
- stable/c/5727ccf9d19ca414cb76d9b647883822e2789c2e
- stable/c/826af7fa62e347464b1b4e0ba2fe19a92438084f