Greg Kroah-Hartman
a6d4ce2e8b
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 >
2017-10-12 11:51:17 +02:00
..
2017-08-30 10:21:56 +02:00
2017-08-30 10:21:53 +02:00
2017-10-08 10:26:11 +02:00
2016-12-05 14:53:46 -05:00
2017-03-30 09:41:27 +02:00
2017-10-05 09:44:01 +02:00
2017-03-12 06:41:52 +01:00
2017-09-27 14:39:21 +02:00
2017-09-09 17:39:40 +02:00
2017-01-19 20:18:07 +01:00
2017-08-06 18:59:43 -07:00
2017-10-08 10:26:04 +02:00
2017-04-12 12:41:16 +02:00
2017-10-08 10:26:10 +02:00
2016-10-15 09:26:12 -07:00
2017-10-05 09:44:00 +02:00
2017-08-06 18:59:43 -07:00
2017-09-27 14:39:24 +02:00
2017-08-06 18:59:46 -07:00
2017-04-18 07:11:50 +02:00
2016-10-04 12:06:26 -07:00
2017-10-08 10:26:03 +02:00
2016-11-03 14:46:39 +01:00
2017-04-21 09:31:20 +02:00
2017-08-11 08:49:30 -07:00
2017-10-08 10:26:07 +02:00
2017-10-08 10:26:07 +02:00
2017-03-30 09:41:27 +02:00
2017-10-08 10:26:04 +02:00
2017-09-09 17:39:39 +02:00
2017-10-08 10:26:11 +02:00
2017-04-12 12:41:17 +02:00
2017-10-08 10:26:04 +02:00
2017-10-08 10:26:11 +02:00
2017-09-27 14:39:19 +02:00
2017-10-08 10:26:10 +02:00
2016-10-27 18:43:43 -07:00
2017-09-07 08:35:39 +02:00
2017-08-06 18:59:42 -07:00
2017-08-30 10:21:51 +02:00
2016-10-07 14:42:05 -07:00
2016-09-20 20:57:12 +10:00
2017-08-06 18:59:42 -07:00
2017-09-09 17:39:41 +02:00
2017-10-08 10:26:11 +02:00
2017-10-08 10:26:12 +02:00
2017-03-15 10:02:45 +08:00
2016-10-17 15:43:05 +02:00
2017-06-24 07:11:14 +02:00
2017-10-08 10:26:07 +02:00
2017-10-08 10:26:08 +02:00
2017-09-13 14:13:36 -07:00
2017-10-08 10:26:10 +02:00
2017-08-06 18:59:42 -07:00
2017-08-30 10:21:55 +02:00
2017-07-27 15:08:02 -07:00
2017-10-08 10:26:10 +02:00
2017-08-06 18:59:48 -07:00
2017-07-27 15:08:08 -07:00
2016-10-10 20:16:43 -07:00
2017-08-24 17:12:18 -07:00
2017-06-17 06:41:54 +02:00
2017-10-05 09:44:03 +02:00
2016-11-11 08:45:08 -08:00
2016-10-17 15:50:07 +01:00
2017-05-14 14:00:19 +02:00
2017-09-27 14:39:19 +02:00
2017-07-05 14:40:23 +02:00
2017-10-08 10:26:03 +02:00
2017-01-19 20:18:07 +01:00
2016-10-11 15:06:32 -07:00
2016-09-20 20:57:12 +10:00
2016-10-13 10:20:06 -04:00
2017-04-21 09:31:22 +02:00
2017-10-08 10:26:09 +02:00
2017-07-05 14:40:29 +02:00
2017-03-12 06:41:50 +01:00
2017-10-08 10:26:03 +02:00
2017-01-26 08:24:44 +01:00
2017-04-21 09:31:24 +02:00
2017-09-27 14:39:22 +02:00
2017-10-08 10:26:03 +02:00
2017-01-26 08:24:45 +01:00
2017-10-08 10:26:06 +02:00
2017-07-27 15:08:08 -07:00
2017-01-09 08:32:16 +01:00
2017-09-09 17:39:37 +02:00
2017-08-16 13:43:17 -07:00
2017-07-27 15:07:55 -07:00
2017-10-08 10:26:05 +02:00
2017-10-12 11:51:17 +02:00
2017-05-25 15:44:46 +02:00
2017-08-06 18:59:48 -07:00
2017-09-20 08:19:56 +02:00
2017-10-05 09:44:05 +02:00
2016-10-19 08:11:43 -07:00
2017-03-31 10:31:45 +02:00
2017-03-12 06:41:50 +01:00
2017-03-12 06:41:48 +01:00
2017-07-05 14:40:28 +02:00
2017-10-05 09:44:05 +02:00
2017-05-20 14:28:35 +02:00