diff options
author | Dongxiang Ke <kdx.glider@gmail.com> | 2022-09-06 04:49:28 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-09-06 07:14:32 +0200 |
commit | e53f47f6c1a56d2af728909f1cb894da6b43d9bf (patch) | |
tree | a065b80b59cf43f2cbe60c93e52f47c6c05f549e /sound/core/memalloc.c | |
parent | ALSA: hda/tegra: Align BDL entry to 4KB boundary (diff) | |
download | linux-e53f47f6c1a56d2af728909f1cb894da6b43d9bf.tar.xz linux-e53f47f6c1a56d2af728909f1cb894da6b43d9bf.zip |
ALSA: usb-audio: Fix an out-of-bounds bug in __snd_usb_parse_audio_interface()
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@gmail.com>
Link: https://lore.kernel.org/r/20220906024928.10951-1-kdx.glider@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/memalloc.c')
0 files changed, 0 insertions, 0 deletions