android_kernel_sony_sdm845/include/uapi/linux/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Masakazu Mokuno 05ffc7ed55 USB: core: Add type-specific length check of BOS descriptors
commit 81cf4a45360f70528f1f64ba018d61cb5767249a 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 22:01:56 +01:00
..
audio.h ALSA: usb: Fix Processing Unit Descriptor parsers 2013-02-21 13:55:12 +01:00
cdc-wdm.h USB: cdc-wdm: properly include types.h 2014-05-27 16:32:10 -07:00
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 22:01:56 +01:00
ch11.h USB: hub: fix SS max number of ports 2017-06-24 07:11:15 +02:00
functionfs.h usb: gadget: f_fs: handle control requests in config 0 2016-08-25 12:13:17 +03:00
g_printer.h
gadgetfs.h
Kbuild usb: cdc-wdm: export cdc-wdm uapi header 2014-05-27 16:29:39 -07:00
midi.h
tmc.h Add ioctls to enable and disable local controls on an instrument 2016-02-03 13:54:06 -08:00
video.h [media] uvcvideo: Enable UVC 1.5 device detection 2015-11-19 11:13:19 -02:00