USB: cdc-acm: more sanity checking
authorOliver Neukum <oneukum@suse.com>
Tue, 15 Mar 2016 09:14:04 +0000 (10:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2016 16:19:02 +0000 (09:19 -0700)
commit8835ba4a39cf53f705417b3b3a94eb067673f2c9
tree87218c976ba7901876cf9ad328823d31ad028fad
parent0b818e3956fc1ad976bee791eadcbb3b5fec5bfd
USB: cdc-acm: more sanity checking

An attack has become available which pretends to be a quirky
device circumventing normal sanity checks and crashes the kernel
by an insufficient number of interfaces. This patch adds a check
to the code path for quirky devices.

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
CC: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c