Files
rockchip-kernel/include/uapi/linux
Masakazu Mokuno 81cf4a4536 USB: core: Add type-specific length check of BOS descriptors
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 15:17:49 +01:00
..
2017-08-31 17:32:38 -04:00
2017-11-08 11:20:49 +09:00
2017-11-16 10:49:00 +09:00
2017-11-11 18:53:16 +09:00
2017-08-04 10:30:27 +02:00