]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Validate UAC3 power domain descriptors, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Aug 2025 08:12:42 +0000 (10:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:09 +0000 (16:28 +0200)
commit07c8d78dbb5e0ff8b23f7fd69cd1d4e2ba22b3dc
treece9976ead287c98972dc66639ec652652adeb6dc
parent17a66aef7ddca6f9c76407fd74938d22d88d5ce1
ALSA: usb-audio: Validate UAC3 power domain descriptors, too

commit d832ccbc301fbd9e5a1d691bdcf461cdb514595f upstream.

UAC3 power domain descriptors need to be verified with its variable
bLength for avoiding the unexpected OOB accesses by malicious
firmware, too.

Fixes: 9a2fe9b801f5 ("ALSA: usb: initial USB Audio Device Class 3.0 support")
Reported-and-tested-by: Youngjun Lee <yjjuny.lee@samsung.com>
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20250814081245.8902-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/validate.c