https://github.com/torvalds/linux
Revision ea04efee7635c9120d015dcdeeeb6988130cb67a authored by Dmitry Torokhov on 07 October 2017, 18:07:47 UTC, committed by Dmitry Torokhov on 20 October 2017, 00:20:06 UTC
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>
1 parent 20ac95d
History
Tip revision: ea04efee7635c9120d015dcdeeeb6988130cb67a authored by Dmitry Torokhov on 07 October 2017, 18:07:47 UTC
Input: ims-psu - check if CDC union descriptor is sane
Tip revision: ea04efe
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 8.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 397.9 KB
Makefile -rw-r--r-- 58.6 KB
README -rw-r--r-- 722 bytes

README

back to top