Takashi Iwai f658f17b5e ALSA: usb-audio: Fix potential out-of-bound access at parsing SU
The usb-audio driver may trigger an out-of-bound access at parsing a
malformed selector unit, as it checks the header length only after
evaluating bNrInPins field, which can be already above the given
length.  Fix it by adding the length check beforehand.

Fixes: 99fc86450c43 ("ALSA: usb-mixer: parse descriptors with structs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-11-21 17:50:31 +01:00
..
2017-09-04 18:24:56 +01:00
2017-09-04 14:50:49 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00
2017-11-15 17:11:16 +01:00
2017-11-13 15:45:57 +01:00
2017-07-09 18:48:37 -07:00
2015-08-31 16:25:22 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00