Ma Ke
010d49c773
HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
...
[ Upstream commit ffe3b7837a2bb421df84d0177481db9f52c93a71 ]
There is a slab-out-of-bounds Write bug in hid-holtek-kbd driver.
The problem is the driver assumes the device must have an input
but some malicious devices violate this assumption.
Fix this by checking hid_device's input is non-empty before its usage.
Signed-off-by: Ma Ke <make_ruc2021@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 11:13:32 +02:00
..
2022-04-20 09:08:16 +02:00
2023-02-06 07:46:28 +01:00
2021-10-06 15:05:11 +02:00
2019-08-29 08:26:40 +02:00
2017-03-21 15:03:55 +01:00
2021-04-28 12:08:43 +02:00
2022-01-27 09:00:54 +01:00
2023-03-11 16:26:33 +01:00
2019-11-06 12:43:33 +01:00
2023-02-06 07:46:30 +01:00
2021-12-14 10:16:53 +01:00
2016-03-02 10:31:36 +01:00
2023-03-22 13:26:16 +01:00
2021-12-14 10:16:53 +01:00
2019-09-10 10:32:17 +01:00
2020-12-02 08:34:41 +01:00
2022-03-08 19:01:58 +01:00
2019-11-06 12:43:33 +01:00
2017-10-11 15:46:22 +02:00
2021-12-14 10:16:53 +01:00
2019-11-06 12:43:33 +01:00
2019-11-06 12:43:33 +01:00
2021-06-30 08:48:46 -04:00
2023-10-25 11:13:32 +02:00
2021-12-29 12:17:32 +01:00
2019-11-06 12:43:33 +01:00
2022-11-25 17:36:44 +01:00
2023-01-18 09:26:35 +01:00
2022-03-08 19:01:58 +01:00
2020-03-11 18:02:49 +01:00
2017-02-27 18:43:47 -08:00
2022-06-14 16:53:48 +02:00
2019-02-12 19:46:09 +01:00
2019-11-06 12:43:33 +01:00
2019-11-06 12:43:33 +01:00
2022-12-14 11:26:13 +01:00
2017-11-02 11:10:55 +01:00
2021-12-14 10:16:53 +01:00
2017-11-02 11:10:55 +01:00
2019-11-06 12:43:33 +01:00
2017-04-06 14:36:36 +02:00
2023-10-25 11:13:29 +02:00
2022-11-03 23:50:51 +09:00
2017-01-11 22:12:44 +01:00
2017-01-20 15:17:19 +01:00
2023-09-23 10:46:59 +02:00
2017-03-06 13:16:33 +01:00
2018-10-03 17:00:52 -07:00
2017-07-24 17:38:21 +02:00
2016-03-10 17:17:26 +01:00
2017-08-20 10:02:48 -04:00
2017-03-24 15:45:04 +01:00
2023-01-18 09:26:35 +01:00
2021-12-14 10:16:53 +01:00
2017-06-22 14:44:11 +02:00
2018-04-24 09:36:28 +02:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2021-12-14 10:16:53 +01:00
2022-10-26 13:17:12 +02:00
2018-10-10 08:54:23 +02:00
2021-12-14 10:16:53 +01:00
2023-01-18 09:26:14 +01:00
2021-06-30 08:48:45 -04:00
2020-06-11 09:22:57 +02:00
2019-11-06 12:43:33 +01:00
2021-12-14 10:16:53 +01:00
2016-11-15 14:23:17 +01:00
2016-09-19 14:32:21 +02:00
2016-03-18 17:31:38 +01:00
2017-03-24 15:43:03 +01:00
2019-11-06 12:43:33 +01:00
2022-09-05 10:25:06 +02:00
2022-01-05 12:33:47 +01:00
2017-11-02 11:10:55 +01:00
2023-03-22 13:26:16 +01:00
2023-09-23 10:46:52 +02:00
2023-09-23 10:46:52 +02:00
2023-09-23 10:46:52 +02:00
2023-09-23 10:46:52 +02:00