HID: steelseries: validate output report details
authorKees Cook <keescook@chromium.org>
Wed, 11 Sep 2013 19:56:53 +0000 (21:56 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:50:59 +0000 (13:50 -0800)
commit90037b2720acffa6da2269a10ecf24ec2dace89b
tree14602060f7e7df341d78841b50e859cb0cb14533
parent068da28761a7d684d9bd68b6b06f2a69266526bf
HID: steelseries: validate output report details

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

[  167.981534] usb 1-1: New USB device found, idVendor=1038, idProduct=1410
...
[  182.050547] BUG kmalloc-256 (Tainted: G        W   ): Redzone overwritten

CVE-2013-2891

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-steelseries.c