android_kernel_sony_sdm845/drivers/usb/wusbcore
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Johan Hovold 46aeeb2ac1 USB: wusbcore: fix NULL-deref at probe
commit 03ace948a4eb89d1cf51c06afdfc41ebca5fdb27 upstream.

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.

This specifically fixes the NULL-pointer dereference when probing HWA HC
devices.

Fixes: df3654236e ("wusb: add the Wire Adapter (WA) core")
Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Cc: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-30 09:41:24 +02:00
..
cbaf.c USB: wusbcore: add in missing white space in error message text 2016-09-13 17:24:24 +02:00
crypto.c wusbcore: Fix one more crypto-on-the-stack bug 2017-01-19 20:18:01 +01:00
dev-sysfs.c
devconnect.c usb: wusbcore: remove unreachable code 2016-04-19 04:33:15 +09:00
Kconfig
Makefile
mmc.c
pal.c
reservation.c
rh.c
security.c usb: wusbcore: security: don't print on ENOMEM 2016-08-30 19:17:39 +02:00
wa-hc.c USB: wusbcore: fix NULL-deref at probe 2017-03-30 09:41:24 +02:00
wa-hc.h
wa-nep.c usb: wusbcore: wa-nep: don't print on ENOMEM 2016-08-30 19:17:39 +02:00
wa-rpipe.c
wa-xfer.c usb: wusbcore: wa-xfer: don't print error when allocating urb fails 2016-08-15 15:54:27 +02:00
wusbhc.c
wusbhc.h USB: core, wusbcore: use bus_to_hcd 2016-01-24 21:00:33 -08:00