linux_dsm_epyc7002/drivers/hid/usbhid
Scott Bauer 93a2001bdf HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
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.

Cc: stable@vger.kernel.org
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2016-06-24 10:21:39 +02:00
..
hid-core.c HID: usbhid: fix inconsistent reset/resume/reset-resume behavior 2016-03-24 15:26:20 +01:00
hid-pidff.c
hid-quirks.c Merge branch 'for-4.7/upstream' into for-linus 2016-05-17 12:41:22 +02:00
hiddev.c HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands 2016-06-24 10:21:39 +02:00
Kconfig
Makefile
usbhid.h HID: usbhid: use to_usb_device 2015-12-28 13:13:20 +01:00
usbkbd.c
usbmouse.c