]> git.baikalelectronics.ru Git - kernel.git/commit
HID: pantherlord: validate output report details
authorKees Cook <keescook@chromium.org>
Wed, 28 Aug 2013 20:30:49 +0000 (22:30 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Sep 2013 09:58:32 +0000 (11:58 +0200)
commitabe0e641fb3b25dd08d718d7f8dd577ba2a0d65b
tree217da936ca3f5afd4327c664dcb5b2d6f7722dec
parentc4ffe6fab17127dadfb80028dd31673490edf5de
HID: pantherlord: validate output report details

A HID device could send a malicious output report that would cause the
pantherlord HID driver to write beyond the output report allocation
during initialization, causing a heap overflow:

[  310.939483] usb 1-1: New USB device found, idVendor=0e8f, idProduct=0003
...
[  315.980774] BUG kmalloc-192 (Tainted: G        W   ): Redzone overwritten

CVE-2013-2892

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-pl.c