CVE-2025-38249

ALSA: usb-audio: Fix out-of-bounds read in snd_usb_get_audioformat_uac3()

published July 9, 2025

CVSS
—
EPSS
0%
Percentile
7.8
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: Fix out-of-bounds read in snd_usb_get_audioformat_uac3()

In snd_usb_get_audioformat_uac3(), the length value returned from

snd_usb_ctl_msg() is used directly for memory allocation without

validation. This length is controlled by the USB device.

The allocated buffer is cast to a uac3_cluster_header_descriptor

and its fields are accessed without verifying that the buffer

is large enough. If the device returns a smaller than expected

length, this leads to an out-of-bounds read.

Add a length check to ensure the buffer is large enough for

uac3_cluster_header_descriptor.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00186 · 7.8th percentile
Published
2025-07-09T10:42Z
EPSS history
Timeline
  • 09 JUL 10:42Z
    ALSA: usb-audio: Fix out-of-bounds read in snd_usb_get_audioformat_uac3()
    cvelistv5