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
2013-09-10 01:57:27 +01:00
2014-12-14 16:23:48 +00:00
2011-11-07 23:54:53 +01:00
2012-02-29 16:31:24 -08:00
2017-02-23 03:51:05 +00:00
2013-01-03 03:32:57 +00:00
2011-11-23 11:33:07 +01:00
2013-03-06 03:23:57 +00:00
2013-08-02 22:14:47 +02:00
2012-08-10 00:11:14 +01:00
2012-07-25 04:11:19 +01:00
2015-05-09 23:16:12 +01:00
2013-03-06 03:24:27 +00:00
2013-04-25 20:25:38 +01:00
2012-10-10 03:30:45 +01:00
2017-07-02 17:12:47 +01:00
2013-07-27 05:34:29 +01:00
2016-04-01 01:54:31 +01:00
2012-01-25 16:13:17 -08:00
2012-02-06 09:41:06 -08:00
2011-11-22 16:37:01 -05:00
2014-07-11 13:33:35 +01:00
2011-11-29 11:59:50 +00:00
2017-09-15 18:30:50 +01:00
2014-08-06 18:07:42 +01:00
2013-01-16 01:13:25 +00:00
2012-07-12 04:31:59 +01:00
2015-02-20 00:49:37 +00:00