linux-stable/drivers/staging
Anant Thazhemadam 709fd75140 staging: comedi: check validity of wMaxPacketSize of usb endpoints found
commit e1f13c879a upstream.

While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if
wMaxPacketSize = 0 for the endpoints found.

Some devices have isochronous endpoints that have wMaxPacketSize = 0
(as required by the USB-2 spec).
However, since this doesn't apply here, wMaxPacketSize = 0 can be
considered to be invalid.

Reported-by: syzbot+009f546aa1370056b1c2@syzkaller.appspotmail.com
Tested-by: syzbot+009f546aa1370056b1c2@syzkaller.appspotmail.com
Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201010082933.5417-1-anant.thazhemadam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-17 10:29:54 +02:00
..
android staging: android: ashmem: Fix lockdep warning for write operation 2020-08-21 09:47:57 +02:00
board
ccree crypto: ccree - avoid implicit enum conversion 2019-12-01 09:13:31 +01:00
clocking-wizard
comedi staging: comedi: check validity of wMaxPacketSize of usb endpoints found 2020-10-17 10:29:54 +02:00
dgnc
emxx_udc
fbtft fbtft: Make sure string is NULL terminated 2019-12-31 12:37:47 +01:00
fsl-dpaa2
fsl-mc
fwserial
gdm724x
goldfish
greybus staging: greybus: audio: fix uninitialized value issue 2020-09-23 10:46:32 +02:00
gs_fpgaboot
iio staging: iio: ad2s1210: Fix SPI reading 2020-05-27 16:43:10 +02:00
irda
ks7010
lustre
media media: staging/imx: Missing assignment in imx_media_capture_device_register() 2020-10-01 13:12:35 +02:00
most staging: most: net: fix buffer overflow 2020-02-05 14:18:01 +00:00
mt29f_spinand
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
rtl8188eu staging:r8188eu: avoid skb_clone for amsdu to msdu conversion 2020-10-01 13:12:42 +02:00
rtl8192e staging: rtl8192e: fix potential use after free 2019-12-05 15:38:08 +01:00
rtl8192u staging: rtl8192u: fix a dubious looking mask before a shift 2020-08-21 09:48:09 +02:00
rtl8712 staging: rtl8712: Fix IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK 2020-06-11 09:23:00 +02:00
rtl8723bs Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate() 2020-06-30 15:38:09 -04:00
rtlwifi staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx 2020-01-27 14:46:21 +01:00
rts5208
skein
sm750fb staging: sm750fb: add missing case while setting FB_VISUAL 2020-06-25 15:41:51 +02:00
speakup staging/speakup: fix get_word non-space look-ahead 2020-04-02 16:34:18 +02:00
typec
unisys
vboxvideo
vc04_services staging: bcm2835-camera: Abort probe if there is no camera 2020-01-27 14:46:07 +01:00
vme
vt6655
vt6656 staging: vt6656: Power save stop wake_up_count wrap around. 2020-05-02 17:24:37 +02:00
wilc1000
wlan-ng staging: wlan-ng: fix out of bounds read in prism2sta_probe_usb() 2020-09-23 10:46:30 +02:00
xgifb
Kconfig
Makefile