alistair23-linux/drivers/usb/misc
Johan Hovold f259ca3eed USB: uss720: fix NULL-deref at probe
Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer or accessing memory beyond the endpoint array should a
malicious device lack the expected endpoints.

Note that the endpoint access that causes the NULL-deref is currently
only used for debugging purposes during probe so the oops only happens
when dynamic debugging is enabled. This means the driver could be
rewritten to continue to accept device with only two endpoints, should
such devices exist.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-14 17:07:30 +08:00
..
sisusbvga drivers: usb-misc: sisusbvga: remove dead code 2017-02-08 07:43:47 +01:00
adutux.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
appledisplay.c
chaoskey.c
cypress_cy7c63.c
cytherm.c
ehset.c
emi26.c
emi62.c
ezusb.c
ftdi-elan.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
idmouse.c USB: idmouse: fix NULL-deref at probe 2017-03-14 17:07:30 +08:00
iowarrior.c USB: iowarrior: fix NULL-deref in write 2017-03-09 10:25:37 +01:00
isight_firmware.c
Kconfig usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver 2017-02-14 09:33:49 -08:00
ldusb.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
legousbtower.c lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
lvstest.c USB: lvtest: fix NULL-deref at probe 2017-03-14 17:07:30 +08:00
Makefile usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver 2017-02-14 09:33:49 -08:00
rio500.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
rio500_usb.h
trancevibrator.c
ucsi.c
ucsi.h
usb251xb.c usb: usb251xb: dt: add unit suffix to oc-delay and power-on-time 2017-03-09 10:34:16 +01:00
usb3503.c
usb4604.c
usb_u132.h
usblcd.c
usbsevseg.c
usbtest.c usb: misc: usbtest: remove redundant check on retval < 0 2017-02-14 09:32:25 -08:00
uss720.c USB: uss720: fix NULL-deref at probe 2017-03-14 17:07:30 +08:00
yurex.c