CVE-2025-38249

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

State
Published
Severity
Not scored
Published
Jul 9, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 24ff7d465c4284529bbfa207757bffb6f44b6403Affected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 2dc1c3edf67abd30c757f8054a5da61927cdda21Affected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before c3fb926abe90d86f5e3055e0035f04d9892a118bAffected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 6eb211788e1370af52a245d4d7da35c374c7b401Affected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 74fcb3852a2f579151ce80b9ed96cd916ba0d5d8Affected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 0ee87c2814deb5e42921281116ac3abcb326880bAffected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before 11e740dc1a2c8590eb7074b5c4ab921bb6224c36Affected
  • 9a2fe9b801f585baccf8352d82839dcd54b300cf to before fb4e2a6e8f28a3c0ad382e363aeb9cd822007b8aAffected
LinuxLinux
  • 4.17Affected
  • before 4.17Not affected
  • 5.4.296 through 5.4.*Not affected
  • 5.10.240 through 5.10.*Not affected
  • 5.15.187 through 5.15.*Not affected
  • 6.1.143 through 6.1.*Not affected
  • 6.6.96 through 6.6.*Not affected
  • 6.12.36 through 6.12.*Not affected
  • 6.15.5 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.