Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

CVE-2024-53150

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < a632bdcb359fd8145e86486ff8612da98e239acdaffected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < 45a92cbc88e4013bfed7fd2ccab3ade45f8e896baffected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < ab011f7439d9bbfd34fd3b9cef4b2d6d952c9bb9affected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < da13ade87a12dd58829278bc816a61bea06a56a9affected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < 74cb86e1006c5437b1d90084d22018da30fddc77affected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < ea0fa76f61cf8e932d1d26e6193513230816e11daffected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < 096bb5b43edf755bc4477e64004fa3a20539ec2faffected
  • b8e4f1fdfa422398c2d6c47bfb7d1feb3046d70a to < a3dd4d63eeb452cfb064a13862fb376ab108f6a6affected
  • 9feeaa50e5b4b0b71259d918a36ecf9059e60796affected
  • 3b17a13b687ae99939dc94a4ae01fbc34f68deccaffected
  • 4.19.84 to < 4.20affected
  • 5.3.11 to < 5.4affected

Linux Linux

Default version status: affected

  • 5.4affected
  • 0 to < 5.4unaffected
  • 5.4.287 to ≤ 5.4.*unaffected
  • 5.10.231 to ≤ 5.10.*unaffected
  • 5.15.174 to ≤ 5.15.*unaffected
  • 6.1.120 to ≤ 6.1.*unaffected
  • 6.6.64 to ≤ 6.6.*unaffected
  • 6.11.11 to ≤ 6.11.*unaffected
  • 6.12.2 to ≤ 6.12.*unaffected
  • 6.13 to ≤ *unaffected

References