]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: pantherlord: validate output report details
authorKees Cook <keescook@chromium.org>
Wed, 28 Aug 2013 20:30:49 +0000 (22:30 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:10:46 +0000 (16:10 -0500)
commit88b152e6f128b050bc15e16d55c003994be352ce
tree93dd346b0e2f5002b367012a643c8bac5eedc3c3
parenta04155e1d8343be1dee5e52979cae7a5afef1d88
HID: pantherlord: validate output report details

commit 412f30105ec6735224535791eed5cdc02888ecb4 upstream.

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>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/hid/hid-pl.c