]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Add validation of UAC2/UAC3 effect units
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Aug 2025 15:17:50 +0000 (17:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Aug 2025 15:18:21 +0000 (17:18 +0200)
commit2aec0b6a6b5395bca7d6fde9c7e9dc391d329698
treed924e766bd078fee7b9eff049ef6e7819f0d66de
parent8ea3449574bde797d8e266fb0d6c2154f8e99c49
ALSA: usb-audio: Add validation of UAC2/UAC3 effect units

Just add fixed struct size validations for UAC2 and UAC3 effect
units.  The descriptor has a variable-length array, so it should be
validated with a proper function later once when the unit is really
parsed and used by the driver (currently only referred partially for
the input terminal parsing).

Link: https://patch.msgid.link/20250821151751.12100-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/validate.c