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
..
2015-10-21 13:15:53 +02:00
2014-08-21 10:43:28 -05:00
2015-10-21 13:15:53 +02:00
2016-06-01 14:08:17 +02:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2016-01-20 17:30:20 -08:00
2015-05-07 10:47:53 +02:00
2015-12-28 13:41:44 +01:00
2014-08-21 10:43:28 -05:00
2015-12-28 13:41:44 +01:00
2016-04-01 11:47:04 +02:00