]> www.infradead.org Git - users/willy/linux.git/commit
ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices
authorBenoît Sevens <bsevens@google.com>
Wed, 20 Nov 2024 12:41:44 +0000 (12:41 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2024 13:18:37 +0000 (14:18 +0100)
commitb909df18ce2a998afef81d58bbd1a05dc0788c40
tree4dbe3a1664d3445e42133c71e54ac0e90c0ed311
parentcc3d0b5dd989d3238d456f9fd385946379a9c13d
ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices

A bogus device can provide a bNumConfigurations value that exceeds the
initial value used in usb_get_configuration for allocating dev->config.

This can lead to out-of-bounds accesses later, e.g. in
usb_destroy_configuration.

Signed-off-by: Benoît Sevens <bsevens@google.com>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@kernel.org
Link: https://patch.msgid.link/20241120124144.3814457-1-bsevens@google.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks.c