← back
CVE-2024-53150

ALSA: usb-audio: Fix out of bounds reads when finding clock sources

CVSS 7.1 HIGHEPSS 1.3%● KEVCWE-125
In short

A USB audio device with intentionally malformed descriptors can cause the Linux kernel's audio driver to read beyond allocated memory, potentially crashing the system or exposing sensitive data.

Technical detail

Out-of-bounds read vulnerability in ALSA USB-audio driver descriptor parsing; triggered by a malicious or defective USB device providing clock descriptors with invalid bLength values during enumeration, bypassing bounds checks in clock source/multiplier/selector descriptor traversal.

Summary generated and translated by AI from the official description.
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Affected products
Linux · Linux

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →