summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-16 16:55:22 +0100
committerJiri Kosina <jkosina@suse.cz>2014-12-17 08:51:52 +0100
commit0b3f6569a560aa68c9c50cae0e1bc401f7ee699f (patch)
treee3372f9fe5bcf4f4d30db907e74501d194162941 /drivers/hid/hid-input.c
parentHID: logitech-dj: check report length (diff)
downloadlinux-0b3f6569a560aa68c9c50cae0e1bc401f7ee699f.tar.xz
linux-0b3f6569a560aa68c9c50cae0e1bc401f7ee699f.zip
HID: logitech-hidpp: check WTP report length
Malicious USB devices can send bogus reports smaller than the expected buffer size. Ensure that the length for WTP reports is valid to avoid reading out of bounds. Signed-off-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
0 files changed, 0 insertions, 0 deletions