linux-stable/sound/usb
Johan Carlsson 5cd466673b ALSA: usb-audio: Stop parsing channels bits when all channels are found.
[ Upstream commit a39d51ff1f ]

If a usb audio device sets more bits than the amount of channels
it could write outside of the map array.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>
Fixes: 04324ccc75 ("ALSA: usb-audio: add channel map support")
Message-ID: <20240313081509.9801-1-johan.carlsson@teenage.engineering>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:00 -04:00
..
6fire
bcd2000 ALSA: bcd2000: Fix a UAF bug on the error path of probing 2022-08-21 15:15:18 +02:00
caiaq ALSA: caiaq: input: Add error handling for unsupported input methods in snd_usb_caiaq_input_init 2023-05-17 11:48:12 +02:00
hiface
line6 ALSA: line6: fix stack overflow in line6_midi_transmit 2023-01-14 10:16:27 +01:00
misc
usx2y
card.c ALSA: usb-audio: Register card again for iface over delayed_register option 2022-09-15 11:32:05 +02:00
card.h
clock.c
clock.h
debug.h
endpoint.c ALSA: usb-audio: Fix NULL dererence at error path 2022-10-26 13:25:06 +02:00
endpoint.h
format.c ALSA: usb-audio: Add a sample rate workaround for Line6 Pod Go 2023-05-30 12:57:53 +01:00
format.h
helper.c
helper.h
Kconfig
Makefile
media.c
media.h
midi.c ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open() 2022-11-25 17:45:49 +01:00
midi.h
mixer.c
mixer.h
mixer_maps.c ALSA: usb-audio: More comprehensive mixer map for ASUS ROG Zenith II 2022-08-25 11:37:51 +02:00
mixer_quirks.c
mixer_quirks.h
mixer_s1810c.c
mixer_s1810c.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c
mixer_scarlett_gen2.h
mixer_us16x08.c
mixer_us16x08.h
pcm.c
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces. 2023-08-26 15:26:55 +02:00
quirks.c ALSA: usb-audio: Add DSD support for Accuphase DAC-60 2022-11-16 09:57:16 +01:00
quirks.h
stream.c ALSA: usb-audio: Stop parsing channels bits when all channels are found. 2024-03-26 18:22:00 -04:00
stream.h
usbaudio.h
validate.c