android_kernel_xiaomi_sm7250/sound/usb
Johan Hovold aa7e8db2b0 ALSA: usb-audio: fix sync-ep altsetting sanity check
commit 5d1b71226dc4d44b4b65766fa9d74492f9d4587b upstream.

The altsetting sanity check in set_sync_ep_implicit_fb_quirk() was
checking for there to be at least one altsetting but then went on to
access the second one, which may not exist.

This could lead to random slab data being used to initialise the sync
endpoint in snd_usb_add_endpoint().

Fixes: c75a8a7ae5 ("ALSA: snd-usb: add support for implicit feedback")
Fixes: ca10a7ebdf ("ALSA: usb-audio: FT C400 sync playback EP to capture EP")
Fixes: 5e35dc0338 ("ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204")
Fixes: 17f08b0d9a ("ALSA: usb-audio: add implicit fb quirk for Axe-Fx II")
Fixes: 103e962564 ("ALSA: usb-audio: simplify set_sync_ep_implicit_fb_quirk")
Cc: stable <stable@vger.kernel.org>     # 3.5
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20200114083953.1106-1-johan@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:21:29 +01:00
..
6fire
bcd2000
caiaq
hiface ALSA: hiface: fix multiple memory leak bugs 2019-08-16 10:12:51 +02:00
line6 ALSA: line6: Fix memory leak at line6_init_pcm() error path 2019-09-06 10:22:08 +02:00
misc
usx2y
card.c
card.h ALSA: usb-audio: set the interface format after resume on Dell WD19 2020-01-09 10:18:59 +01:00
clock.c ALSA: usb-audio: Remove superfluous bLength checks 2019-11-12 19:20:48 +01:00
clock.h
debug.h
endpoint.c ALSA: usb-audio: not submit urb for stopped endpoint 2019-11-20 18:45:12 +01:00
endpoint.h
format.c
format.h
helper.c
helper.h ALSA: usb-audio: More validations of descriptor units 2019-11-12 19:20:48 +01:00
Kconfig
Makefile ALSA: usb-audio: More validations of descriptor units 2019-11-12 19:20:48 +01:00
midi.c
midi.h
mixer_maps.c
mixer_quirks.c ALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate() 2019-09-06 10:22:10 +02:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
mixer_us16x08.c
mixer_us16x08.h
mixer.c ALSA: usb-audio: Fix NULL dereference at parsing BADD 2019-12-01 09:17:38 +01:00
mixer.h
pcm.c ALSA: usb-audio: fix sync-ep altsetting sanity check 2020-01-23 08:21:29 +01:00
pcm.h
power.c ALSA: usb-audio: More validations of descriptor units 2019-11-12 19:20:48 +01:00
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: set the interface format after resume on Dell WD19 2020-01-09 10:18:59 +01:00
quirks.c ALSA: usb-audio: Apply the sample rate quirk for Bose Companion 5 2020-01-14 20:06:58 +01:00
quirks.h
stream.c ALSA: usb-audio: More validations of descriptor units 2019-11-12 19:20:48 +01:00
stream.h
usbaudio.h ALSA: usb-audio: set the interface format after resume on Dell WD19 2020-01-09 10:18:59 +01:00
validate.c ALSA: usb-audio: Fix incorrect size check for processing/extension units 2019-11-20 18:45:13 +01:00