Files
linux/drivers/input
Dmitry Torokhov 9d65d0ea55 Input: ims-psu - check if CDC union descriptor is sane
commit ea04efee76 upstream.

Before trying to use CDC union descriptor, try to validate whether that it
is sane by checking that intf->altsetting->extra is big enough and that
descriptor bLength is not too big and not too small.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-18 11:22:24 +01:00
..
2012-08-21 22:29:49 -07:00
2010-11-30 23:10:26 -08:00
2015-07-24 09:11:01 -07:00
2016-07-19 11:02:56 -07:00