android_kernel_samsung_msm8976/drivers/usb/core
Mathias Payer 5cdcc6e3d8 USB: check usb_get_extra_descriptor for proper size
When reading an extra descriptor, we need to properly check the minimum
and maximum size allowed, to prevent from invalid data being sent by a
device.

Change-Id: If4dd31307e0531261c9d9a21fbea5487732f7baa
Reported-by: Hui Peng <benquike@gmail.com>
Reported-by: Mathias Payer <mathias.payer@nebelwelt.net>
Co-developed-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Hui Peng <benquike@gmail.com>
Signed-off-by: Mathias Payer <mathias.payer@nebelwelt.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-11 19:44:53 +02:00
..
Kconfig
Makefile
buffer.c
config.c Revert "USB: core: only clean up what we allocated" 2019-07-27 21:52:46 +02:00
devices.c
devio.c USB: usbfs: Filter flags passed in from user space 2019-07-27 21:46:12 +02:00
driver.c This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
endpoint.c
file.c
generic.c
hcd-pci.c usb: hcd: out of bounds access in for_each_companion 2016-06-07 10:42:50 +02:00
hcd.c USB: Increment wakeup count on remote wakeup. 2019-07-27 21:52:12 +02:00
hub.c USB: check usb_get_extra_descriptor for proper size 2019-09-11 19:44:53 +02:00
hub.h
message.c USB: core: Fix unterminated string returned by usb_string() 2019-07-27 22:10:38 +02:00
notify.c
otg_whitelist.h
port.c
quirks.c USB: fix up faulty backports 2019-07-27 21:41:45 +02:00
sysfs.c
urb.c treewide: Fix typo in Documentation/DocBook 2019-07-27 22:10:20 +02:00
usb-acpi.c
usb.c USB: check usb_get_extra_descriptor for proper size 2019-09-11 19:44:53 +02:00
usb.h