Files
i2som-imx-linux/include/uapi/linux
Masakazu Mokuno 05ffc7ed55 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 22:01:56 +01:00
..
2016-12-05 19:43:02 -05:00
2017-12-05 11:24:34 +01:00
2016-09-23 08:40:28 -04:00
2016-10-03 18:52:14 +02:00
2016-10-01 07:32:32 +02:00
2016-10-14 15:00:10 -04:00
2016-09-27 21:52:00 -04:00
2016-09-27 21:52:00 -04:00
2016-09-21 00:23:00 -04:00