Pietro Borrello
5035431c4b
HID: check empty report_list in hid_validate_values()
...
[ Upstream commit b12fece4c64857e5fab4290bf01b2e0317a88456 ]
Add a check for empty report_list in hid_validate_values().
The missing check causes a type confusion when issuing a list_entry()
on an empty report_list.
The problem is caused by the assumption that the device must
have valid report_list. While this will be true for all normal HID
devices, a suitably malicious device can violate the assumption.
Fixes: 1b15d2e5b8 ("HID: core: fix validation of report id 0")
Change-Id: I990e3685de15a63e636a008dce7c450966c47cf8
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Ulrich Hecht <uli+cip@fpond.eu >
2023-12-13 15:59:35 +08:00
..
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-10-18 15:50:37 +03:00
2015-11-05 09:51:50 -08:00
2019-09-24 12:20:53 -07:00
2015-10-21 13:15:53 +02:00
2019-11-06 12:09:20 +01:00
2021-10-06 10:22:25 +02:00
2021-12-14 10:03:48 +01:00
2023-12-13 15:59:35 +08:00
2021-12-14 10:03:48 +01:00
2015-07-14 22:42:42 +02:00
2020-12-02 08:29:27 +01:00
2019-05-16 19:45:00 +02:00
2019-11-06 12:09:20 +01:00
2015-10-21 13:15:53 +02:00
2021-12-14 10:03:48 +01:00
2019-11-06 12:09:20 +01:00
2019-11-06 12:09:20 +01:00
2015-08-18 15:03:43 +02:00
2015-11-05 10:15:35 -08:00
2021-06-30 08:49:30 -04:00
2021-12-14 10:03:48 +01:00
2021-12-29 11:50:29 +01:00
2019-11-06 12:09:20 +01:00
2021-07-24 19:27:53 +03:00
2020-09-12 09:47:22 -07:00
2019-02-20 10:13:14 +01:00
2019-11-06 12:09:20 +01:00
2019-11-06 12:09:20 +01:00
2019-11-06 12:09:20 +01:00
2015-05-07 16:27:07 +02:00
2021-12-14 10:03:48 +01:00
2019-11-06 12:09:20 +01:00
2019-06-11 12:23:57 +02:00
2022-11-15 21:35:30 +01:00
2015-09-23 11:47:24 +02:00
2020-09-12 11:45:26 +02:00
2020-03-12 22:36:31 +00:00
2018-10-10 08:52:06 +02:00
2015-06-29 14:51:12 +02:00
2015-06-29 14:51:12 +02:00
2015-06-29 14:51:12 +02:00
2021-05-22 10:38:24 +02:00
2021-12-14 10:03:48 +01:00
2018-04-24 09:32:07 +02:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2021-12-14 10:03:48 +01:00
2015-09-04 14:44:44 +02:00
2021-12-14 10:03:48 +01:00
2015-04-10 22:22:55 +02:00
2021-06-30 08:49:30 -04:00
2015-05-07 10:47:53 +02:00
2019-11-22 13:49:19 +08:00
2020-05-28 12:59:03 -05:00
2016-05-19 12:35:13 +05:30
2019-11-06 12:09:20 +01:00
2021-12-14 10:03:48 +01:00
2017-12-25 14:22:12 +01:00
2019-11-06 12:09:20 +01:00
2020-01-23 08:18:34 +01:00
2021-12-27 01:17:29 +02:00
2020-05-28 12:59:02 -05:00
2022-01-27 08:54:26 +01:00
2021-12-14 10:03:48 +01:00
2019-09-06 10:18:09 +02:00
2015-11-06 21:45:15 +01:00
2015-08-28 20:43:20 +02:00