HID: pantherlord: validate output report details
authorKees Cook <keescook@chromium.org>
Wed, 28 Aug 2013 20:30:49 +0000 (22:30 +0200)
committerBadhri Jagan Sridharan <Badhri@google.com>
Fri, 11 Jul 2014 21:01:02 +0000 (14:01 -0700)
commite3c850750a74e04855fc61e9f5d2854eeca8087c
tree2cdfd866e53f7bbe53651e14f7d6455774633863
parent7e62de4584a6ad505e164ae92c9c1571da46c9bb
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