]> git.baikalelectronics.ru Git - kernel.git/commit
HID: zeroplus: validate output report details
authorKees Cook <keescook@chromium.org>
Wed, 11 Sep 2013 19:56:51 +0000 (21:56 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 13 Sep 2013 13:11:34 +0000 (15:11 +0200)
commit4df38620aabb86b3cc38a95ebf70f619da88ac6e
tree82d36fa7693f2c6aea5a55d4eb64e57542fcae93
parent7dc6a1ef761ab9ea36ae0183af77dea004490c35
HID: zeroplus: validate output report details

The zeroplus HID driver was not checking the size of allocated values
in fields it used. A HID device could send a malicious output report
that would cause the driver to write beyond the output report allocation
during initialization, causing a heap overflow:

[ 1442.728680] usb 1-1: New USB device found, idVendor=0c12, idProduct=0005
...
[ 1466.243173] BUG kmalloc-192 (Tainted: G        W   ): Redzone overwritten

CVE-2013-2889

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-zpff.c