]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Validate UAC3 cluster segment descriptors
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Aug 2025 08:12:43 +0000 (10:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:09 +0000 (16:28 +0200)
commit1034719fdefd26caeec0a44a868bb5a412c2c1a5
tree19f254e0235f1fc1c3a343d80029a51844cd0f04
parent07c8d78dbb5e0ff8b23f7fd69cd1d4e2ba22b3dc
ALSA: usb-audio: Validate UAC3 cluster segment descriptors

commit ecfd41166b72b67d3bdeb88d224ff445f6163869 upstream.

UAC3 class segment descriptors need to be verified whether their sizes
match with the declared lengths and whether they fit with the
allocated buffer sizes, too.  Otherwise malicious firmware may lead to
the unexpected OOB accesses.

Fixes: 11785ef53228 ("ALSA: usb-audio: Initial Power Domain support")
Reported-and-tested-by: Youngjun Lee <yjjuny.lee@samsung.com>
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20250814081245.8902-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/stream.c