commit | e84749a78dc82bc545f12ce009e3dbcc2c5a8a91 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Mon May 10 17:06:59 2021 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Mon May 10 17:08:38 2021 +0200 |
tree | de7946aafb61ac751a531065920c599003027f27 | |
parent | c1b55029493879f5bd585ff79f326e71f0bc05e3 [diff] |
ALSA: usb-audio: Validate MS endpoint descriptors snd_usbmidi_get_ms_info() may access beyond the border when a malformed descriptor is passed. This patch adds the sanity checks of the given MS endpoint descriptors, and skips invalid ones. Reported-by: syzbot+6bb23a5d5548b93c94aa@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210510150659.17710-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>