Files
kernel_google_wahoo/include/uapi/linux
Jonathan Solnit f673ae9d44 UPSTREAM: USB: fix out-of-bounds in usb_set_configuration
commit bd7a3fe770ebd8391d1c7d072ff88e9e76d063eb

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...

Bug: 69052055
Change-Id: I2cc3b5a66d16abd0fc567d69457fc90a45eb12d8
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Solnit <jsolnit@google.com>
2018-01-11 21:35:37 +00:00
..
2015-10-13 17:42:34 +02:00
2014-09-23 23:15:46 -07:00
2015-04-21 16:16:02 -04:00
2016-03-22 11:04:51 -07:00
2015-10-05 03:16:46 -07:00
2014-07-01 10:48:05 -06:00
2015-08-25 14:41:50 -05:00
2014-11-19 14:48:02 -06:00
2016-03-22 11:10:20 -07:00
2014-08-08 15:57:31 -07:00
2015-04-12 21:25:13 -04:00
2016-03-22 11:04:54 -07:00
2014-12-22 16:12:36 -05:00
2016-03-22 11:07:51 -07:00
2014-12-02 13:52:53 -07:00
2015-02-17 14:34:51 -08:00
2015-08-03 17:30:00 -07:00
2014-08-08 15:57:31 -07:00
2016-04-13 11:12:20 -07:00
2015-07-21 10:39:05 -07:00
2015-01-20 13:51:06 +01:00
2014-12-13 12:42:52 -08:00
2016-03-22 11:08:56 -07:00
2016-03-22 11:07:51 -07:00
2015-05-05 13:40:44 -06:00
2015-02-02 18:46:51 -08:00
2017-05-22 23:19:33 -07:00
2017-05-22 23:19:33 -07:00
2015-08-27 19:44:53 -04:00
2015-04-23 15:16:14 -04:00
2015-07-20 14:58:46 -04:00
2017-05-22 23:19:33 -07:00
2015-09-17 21:09:07 -07:00
2016-03-23 19:57:25 -07:00
2016-03-23 19:57:25 -07:00
2016-08-20 19:04:33 -07:00
2016-03-22 11:09:38 -07:00
2016-04-22 11:57:49 -07:00
2016-03-22 11:04:51 -07:00
2016-03-22 11:04:51 -07:00
2014-12-09 14:10:41 +08:00
2016-03-22 11:08:58 -07:00
2015-03-05 22:08:42 -05:00
2015-05-24 12:49:16 -07:00
2015-06-11 23:37:37 +02:00
2015-10-27 18:55:31 -07:00
2015-12-04 08:38:42 -07:00
2015-10-16 10:44:02 +02:00
2015-06-03 14:17:38 +02:00
2015-03-29 12:13:52 +10:30
2014-12-09 12:05:24 +02:00
2015-03-31 13:58:35 -04:00