Files
twx-linux/drivers
Alan Stern dfdf5fa3e6 USB: core: prevent malicious bNumInterfaces overflow
commit 48a4ff1c7b upstream.

A malicious USB device with crafted descriptors can cause the kernel
to access unallocated memory by setting the bNumInterfaces value too
high in a configuration descriptor.  Although the value is adjusted
during parsing, this adjustment is skipped in one of the error return
paths.

This patch prevents the problem by setting bNumInterfaces to 0
initially.  The existing code already sets it to the proper value
after parsing is complete.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-20 10:04:51 +01:00
..
…
2017-12-16 10:33:55 +01:00
…
…
…
2017-12-09 18:42:43 +01:00
…
…
…
…
2017-10-12 11:27:33 +02:00
2017-12-16 10:33:53 +01:00
…
…
2017-11-30 08:37:27 +00:00
…
…
2017-12-16 10:33:56 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…