summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lenovo-tpkbd.c
diff options
context:
space:
mode:
authorBenjamin Tissoires2013-09-11 21:56:58 +0200
committerJiri Kosina2013-09-13 15:13:52 +0200
commit8821f5dc187bdf16cfb32ef5aa8c3035273fa79a (patch)
tree5cefd4e48b6eb226d8da4d887cb56dac67db64fa /drivers/hid/hid-lenovo-tpkbd.c
parentHID: logitech-dj: validate output report details (diff)
downloadkernel-qcow2-linux-8821f5dc187bdf16cfb32ef5aa8c3035273fa79a.tar.gz
kernel-qcow2-linux-8821f5dc187bdf16cfb32ef5aa8c3035273fa79a.tar.xz
kernel-qcow2-linux-8821f5dc187bdf16cfb32ef5aa8c3035273fa79a.zip
HID: multitouch: validate indexes details
When working on report indexes, always validate that they are in bounds. Without this, a HID device could report a malicious feature report that could trick the driver into a heap overflow: [ 634.885003] usb 1-1: New USB device found, idVendor=0596, idProduct=0500 ... [ 676.469629] BUG kmalloc-192 (Tainted: G W ): Redzone overwritten Note that we need to change the indexes from s8 to s16 as they can be between -1 and 255. CVE-2013-2897 Cc: stable@vger.kernel.org Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lenovo-tpkbd.c')
0 files changed, 0 insertions, 0 deletions