Linux
ALSA: aloop: Fix racy access at PCM trigger
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < f57467114f40c5aacebbea96fb4ff9e5cd2b7f18
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < c99be0d5af02adebe9cb6f9869d20397fa9935a3
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < f3ce8be893726899e3053cf8059ecc95d8410359
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < 0e6245b2424d126ac90018142d09f0707e12998b
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < bad15420050db1803767e58756114800cce91ea4
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < 5727ccf9d19ca414cb76d9b647883822e2789c2e
- >= b1c73fc8e697eb73e23603e465e9af2711ed4183, < 826af7fa62e347464b1b4e0ba2fe19a92438084f
Fixed in f57467114f40c5aacebbea96fb4ff9e5cd2b7f18, c99be0d5af02adebe9cb6f9869d20397fa9935a3, f3ce8be893726899e3053cf8059ecc95d8410359, 0e6245b2424d126ac90018142d09f0707e12998b, bad15420050db1803767e58756114800cce91ea4, 5727ccf9d19ca414cb76d9b647883822e2789c2e, 826af7fa62e347464b1b4e0ba2fe19a92438084f
- 2.6.37
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.70, 6.18.10, 6.19
Mitigation
Upgrade Linux to f57467114f40c5aacebbea96fb4ff9e5cd2b7f18 or c99be0d5af02adebe9cb6f9869d20397fa9935a3 or f3ce8be893726899e3053cf8059ecc95d8410359 or 0e6245b2424d126ac90018142d09f0707e12998b or bad15420050db1803767e58756114800cce91ea4 or 5727ccf9d19ca414cb76d9b647883822e2789c2e or 826af7fa62e347464b1b4e0ba2fe19a92438084f or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.70 or 6.18.10 or 6.19 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.