linux-uconsole/include/uapi/linux/usb
Masakazu Mokuno 9d812f7bef USB: core: Add type-specific length check of BOS descriptors
commit 81cf4a4536 upstream.

As most of BOS descriptors are longer in length than their header
'struct usb_dev_cap_header', comparing solely with it is not sufficient
to avoid out-of-bounds access to BOS descriptors.

This patch adds descriptor type specific length check in
usb_get_bos_descriptor() to fix the issue.

Signed-off-by: Masakazu Mokuno <masakazu.mokuno@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-09 18:42:44 +01:00
..
audio.h
cdc-wdm.h
cdc.h cdc: add header guards 2015-09-15 21:53:24 -07:00
ch9.h USB: core: Add type-specific length check of BOS descriptors 2017-12-09 18:42:44 +01:00
ch11.h USB: hub: fix SS max number of ports 2017-06-26 07:13:09 +02:00
functionfs.h usb: gadget: ffs: add eventfd notification about ffs events 2015-01-27 09:34:59 -06:00
g_printer.h
gadgetfs.h
Kbuild
midi.h
tmc.h
video.h