Revision d979e9f9ecab04c1ecca741370e30a8a498893f5 authored by Johan Hovold on 27 August 2014, 09:55:18 UTC, committed by Greg Kroah-Hartman on 27 August 2014, 20:23:52 UTC
Make sure to verify the maximum number of endpoints per type to avoid
writing beyond the end of a stack-allocated array.

The current usb-serial implementation is limited to eight ports per
interface but failed to verify that the number of endpoints of a certain
type reported by a device did not exceed this limit.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0393689
History
File Mode Size
arm
arm64
filesystems
video4linux
CodingStyle -rw-r--r-- 28.9 KB
HOWTO -rw-r--r-- 27.2 KB
IRQ.txt -rw-r--r-- 2.0 KB
SecurityBugs -rw-r--r-- 2.7 KB
SubmittingDrivers -rw-r--r-- 7.4 KB
SubmittingPatches -rw-r--r-- 18.9 KB
basic_profiling.txt -rw-r--r-- 2.7 KB
email-clients.txt -rw-r--r-- 9.3 KB
gpio.txt -rw-r--r-- 32.0 KB
io_ordering.txt -rw-r--r-- 2.9 KB
magic-number.txt -rw-r--r-- 9.7 KB
oops-tracing.txt -rw-r--r-- 11.3 KB
sparse.txt -rw-r--r-- 3.8 KB
stable_api_nonsense.txt -rw-r--r-- 9.6 KB
stable_kernel_rules.txt -rw-r--r-- 3.7 KB
volatile-considered-harmful.txt -rw-r--r-- 6.4 KB

back to top