[PATCH] ALSA: usb-audio: Fix an out-of-bounds bug in __snd_usb_parse_audio_interface()
Takashi Iwai
tiwai at suse.de
Tue Sep 6 07:15:21 CEST 2022
On Tue, 06 Sep 2022 04:49:28 +0200,
Dongxiang Ke wrote:
>
> There may be a bad USB audio device with a USB ID of (0x04fa, 0x4201) and
> the number of it's interfaces less than 4, an out-of-bounds read bug occurs
> when parsing the interface descriptor for this device.
>
> Fix this by checking the number of interfaces.
>
> Signed-off-by: Dongxiang Ke <kdx.glider at gmail.com>
Thanks, applied.
Takashi
More information about the Alsa-devel
mailing list