ALSA: usb-audio: Fix out of bounds reads when finding clock sources
Exploited in the wild, in CISA KEV since 9 Apr 2025 (due 30 Apr 2025). Fixed in Kernel ea0fa76f61cf8e932d1d26e6193513230816e11d, Kernel 4.20, Kernel 5.4 and 14 more.
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix out of bounds reads when finding clock sources The current USB-audio driver code doesn't check bLength of each descriptor at traversing for clock descriptors. That is, when a device provides a bogus descriptor with a shorter bLength, the driver might hit out-of-bounds reads. For addressing it, this patch adds sanity checks to the validator functions for the clock descriptor traversal. When the descriptor length is shorter than expected, it's skipped in the loop. For the clock source and clock multiplier descriptors, we can just check bLength against the sizeof() of each descriptor type. OTOH, the clock selector descriptor of UAC2 and UAC3 has an array of bNrInPins elements and two more fields at its tail, hence those have to be checked in addition to the sizeof() check.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <ea0fa76f61cf8e932d1d26e6193513230816e11d, >=4.19.84 <4.20, >=5.3.11 <5.4, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <096bb5b43edf755bc4477e64004fa3a20539ec2f, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <45a92cbc88e4013bfed7fd2ccab3ade45f8e896b, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <74cb86e1006c5437b1d90084d22018da30fddc77, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <a3dd4d63eeb452cfb064a13862fb376ab108f6a6, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <a632bdcb359fd8145e86486ff8612da98e239acd, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <ab011f7439d9bbfd34fd3b9cef4b2d6d952c9bb9, >=b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a <da13ade87a12dd58829278bc816a61bea06a56a9, =3b17a13b687ae99939dc94a4ae01fbc34f68decc, =5.4, =9feeaa50e5b4b0b71259d918a36ecf9059e60796 | ea0fa76f61cf8e932d1d26e6193513230816e11d, 4.20, 5.4, 096bb5b43edf755bc4477e64004fa3a20539ec2f, 45a92cbc88e4013bfed7fd2ccab3ade45f8e896b, 74cb86e1006c5437b1d90084d22018da30fddc77, a3dd4d63eeb452cfb064a13862fb376ab108f6a6, a632bdcb359fd8145e86486ff8612da98e239acd, ab011f7439d9bbfd34fd3b9cef4b2d6d952c9bb9, da13ade87a12dd58829278bc816a61bea06a56a9 |
| linux-kernel: Kernel | >=5.11.0 <5.15.174, >=5.16.0 <6.1.120, >=5.3.11 <5.4, >=5.4.0 <5.4.287, >=5.5.0 <5.10.231, >=6.12.0 <6.12.2, >=6.2.0 <6.6.64, >=6.7.0 <6.11.11, >=4.19.84 <4.20 | 5.15.174, 6.1.120, 5.4, 5.4.287, 5.10.231, 6.12.2, 6.6.64, 6.11.11, 4.20 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket