summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2017-12-12 14:25:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-20 10:04:51 +0100
commitdfdf5fa3e6647c0fc02be8d857b6b8b7098946ff (patch)
tree7648b8ebbf28d5ac70bfba4b5ff064b3e0e4dc78 /tools/perf/scripts/python/bin
parent05de6fa5c0e2fbbed4d41eaf2b474a863c544532 (diff)
USB: core: prevent malicious bNumInterfaces overflow
commit 48a4ff1c7bb5a32d2e396b03132d20d552c0eca7 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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions