kernel_samsung_a53x/sound/usb
Takashi Iwai 1c740a4056 ALSA: 6fire: Release resources at card release
[ Upstream commit a0810c3d6dd2d29a9b92604d682eacd2902ce947 ]

The current 6fire code tries to release the resources right after the
call of usb6fire_chip_abort().  But at this moment, the card object
might be still in use (as we're calling snd_card_free_when_closed()).

For avoid potential UAFs, move the release of resources to the card's
private_free instead of the manual call of usb6fire_chip_destroy() at
the USB disconnect callback.

Fixes: c6d43ba816d1 ("ALSA: usb/6fire - Driver for TerraTec DMX 6Fire USB")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241113111042.15058-6-tiwai@suse.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:07 +01:00
..
6fire ALSA: 6fire: Release resources at card release 2024-12-17 13:24:07 +01:00
bcd2000
caiaq ALSA: caiaq: Use snd_card_free_when_closed() at disconnection 2024-12-17 13:24:07 +01:00
hiface
line6 Revert "ALSA: line6: add hw monitor volume control to POD HD500X" 2024-11-24 00:23:04 +01:00
misc
usx2y ALSA: us122l: Use snd_card_free_when_closed() at disconnection 2024-12-17 13:24:07 +01:00
card.c Revert "ALSA: usb-audio: Add logitech Audio profile quirk" 2024-11-24 00:23:07 +01:00
card.h
clock.c
clock.h
debug.h
endpoint.c
endpoint.h
exynos_usb_audio.c
exynos_usb_audio.h
format.c
format.h
helper.c
helper.h
Kconfig
Makefile
media.c
media.h
midi.c
midi.h
mixer.c
mixer.h
mixer_maps.c
mixer_quirks.c ALSA: usb-audio: Add endianness annotations 2024-11-30 02:33:27 +01:00
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: Fix Yamaha P-125 Quirk Entry 2024-12-17 13:23:58 +01:00
quirks.c
quirks.h
stream.c
stream.h
usbaudio.h
validate.c