Files
i2som-imx-linux/include/linux
Greg Kroah-Hartman a0e0a58502 USB: fix out-of-bounds in usb_set_configuration
commit bd7a3fe770 upstream.

Andrey Konovalov reported a possible out-of-bounds problem for a USB interface
association descriptor.  He writes:
	It seems there's no proper size check of a USB_DT_INTERFACE_ASSOCIATION
	descriptor. It's only checked that the size is >= 2 in
	usb_parse_configuration(), so find_iad() might do out-of-bounds access
	to intf_assoc->bInterfaceCount.

And he's right, we don't check for crazy descriptors of this type very well, so
resolve this problem.  Yet another issue found by syzkaller...

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2017-11-11 13:34:40 +00:00
..
2016-08-22 22:37:11 +01:00
2016-04-01 01:54:32 +01:00
2014-12-14 16:23:48 +00:00
2017-02-23 03:51:05 +00:00
2015-05-09 23:16:12 +01:00
2017-07-02 17:12:47 +01:00
2016-04-01 01:54:31 +01:00
2014-07-11 13:33:35 +01:00
2017-09-15 18:30:50 +01:00
2014-08-06 18:07:42 +01:00
2015-02-20 00:49:37 +00:00