linux/drivers/hid/usbhid
Scott Bauer 4ef3e38d4e HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
commit 93a2001bdf upstream.

This patch validates the num_values parameter from userland during the
HIDIOCGUSAGES and HIDIOCSUSAGES commands. Previously, if the report id was set
to HID_REPORT_ID_UNKNOWN, we would fail to validate the num_values parameter
leading to a heap overflow.

Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-08-22 22:38:20 +01:00
..
hid-core.c HID: usbhid: fix inconsistent reset/resume/reset-resume behavior 2016-06-15 21:29:21 +01:00
hid-pidff.c HID: pidff: Fix initialisation forMicrosoft Sidewinder FF Pro 2 2015-03-23 15:17:54 +00:00
hid-quirks.c HID: usbhid: add Chicony/Pixart usb optical mouse that needs QUIRK_ALWAYS_POLL 2015-08-27 15:01:11 +01:00
hiddev.c HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands 2016-08-22 22:38:20 +01:00
Kconfig HID: Fix the generic Kconfig options 2012-06-25 17:25:00 +02:00
Makefile HID: usbhid: Clean up makefile (-y instead of -objs) 2010-11-18 10:43:18 +01:00
usbhid.h HID: usbhid: use generic hidinput_input_event() 2013-07-31 10:31:21 +02:00
usbkbd.c HID: usbkbd: fix inconsistent debugging output 2013-11-19 11:32:04 +01:00
usbmouse.c USB: usbmouse.c: remove err() usage 2012-04-25 14:48:20 -07:00