Fullway Wang
cd36da760b
fbdev: sis: Error out if pixclock equals zero
...
[ Upstream commit e421946be7d9bf545147bea8419ef8239cb7ca52 ]
The userspace program could pass any values to the driver through
ioctl() interface. If the driver doesn't check the value of pixclock,
it may cause divide-by-zero error.
In sisfb_check_var(), var->pixclock is used as a divisor to caculate
drate before it is checked against zero. Fix this by checking it
at the beginning.
This is similar to CVE-2022-3061 in i740fb which was fixed by
commit 15cf0b8.
Signed-off-by: Fullway Wang <fullwaywang@outlook.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:16:44 +01:00
..
2023-11-08 17:30:48 +01:00
2024-01-25 14:37:52 -08:00
2023-04-05 11:23:46 +02:00
2020-05-06 19:29:10 +02:00
2023-04-05 11:23:45 +02:00
2021-09-18 13:40:22 +02:00
2023-01-14 10:16:49 +01:00
2020-04-08 12:09:15 +02:00
2023-08-26 15:26:50 +02:00
2023-04-05 11:23:45 +02:00
2023-07-27 08:43:51 +02:00
2022-04-08 14:40:35 +02:00
2021-09-18 13:40:22 +02:00
2024-03-01 13:16:44 +01:00
2024-03-01 13:16:44 +01:00
2023-01-14 10:16:01 +01:00
2023-01-14 10:16:01 +01:00
2020-01-03 14:27:43 +01:00
2020-08-23 17:36:59 -05:00
2019-06-19 17:09:55 +02:00
2022-08-21 15:16:10 +02:00
2020-07-10 16:17:20 +02:00
2023-05-30 12:57:46 +01:00
2022-08-21 15:16:13 +02:00
2021-09-18 13:40:22 +02:00
2022-04-08 14:39:56 +02:00
2022-04-08 14:40:06 +02:00
2019-12-05 10:57:53 +02:00
2023-07-27 08:44:40 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2020-03-09 11:12:19 +01:00
2020-01-30 08:04:01 -08:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2020-01-15 17:31:50 +01:00
2022-09-15 11:32:03 +02:00
2022-04-08 14:40:34 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2022-04-08 14:40:06 +02:00
2020-09-08 13:33:16 +02:00
2019-06-19 17:09:55 +02:00
2020-07-10 16:17:28 +02:00
2019-12-05 10:57:53 +02:00
2020-08-20 06:26:22 +02:00
2023-09-19 12:20:24 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2023-11-20 11:06:57 +01:00
2020-02-19 10:58:22 -08:00
2021-10-13 10:04:28 +02:00
2019-12-05 10:57:53 +02:00
2020-07-20 11:47:29 +02:00
2020-08-23 17:36:59 -05:00
2019-12-05 10:57:53 +02:00
2021-05-26 12:06:57 +02:00
2020-06-09 09:39:13 -07:00
2020-06-17 10:57:41 -07:00
2023-01-14 10:16:13 +01:00
2022-09-23 14:16:58 +02:00
2023-11-20 11:06:57 +01:00
2023-07-27 08:44:39 +02:00
2023-10-10 21:53:33 +02:00
2019-12-05 10:57:53 +02:00
2020-07-20 11:47:29 +02:00
2020-10-15 10:46:16 -07:00
2019-12-05 10:57:53 +02:00
2020-07-20 11:47:29 +02:00
2020-04-12 22:09:35 +02:00
2020-07-10 16:17:24 +02:00
2020-01-03 14:27:49 +01:00
2020-08-23 17:36:59 -05:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2023-01-14 10:16:01 +01:00
2020-07-16 12:35:15 -07:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-08-04 07:37:23 +02:00
2020-08-05 19:47:22 +02:00
2022-09-23 14:17:00 +02:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2019-08-26 10:02:02 +02:00
2020-06-09 09:39:13 -07:00
2020-04-17 15:50:12 +02:00
2020-08-20 17:48:12 +02:00
2020-08-20 17:48:12 +02:00
2020-08-23 17:36:59 -05:00
2022-08-21 15:16:13 +02:00
2020-08-23 17:36:59 -05:00
2020-04-17 15:50:11 +02:00
2020-01-30 08:04:01 -08:00
2020-08-23 17:36:59 -05:00
2019-06-12 20:28:11 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2020-08-23 17:36:59 -05:00
2022-04-08 14:40:36 +02:00
2023-02-15 17:22:20 +01:00
2020-09-08 13:33:03 +02:00
2020-09-08 13:33:24 +02:00
2023-12-08 08:46:14 +01:00
2023-06-09 10:30:08 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2019-12-05 10:57:53 +02:00
2020-08-23 17:36:59 -05:00
2023-04-05 11:23:45 +02:00
2019-12-05 10:57:53 +02:00
2020-01-30 08:04:01 -08:00
2023-05-30 12:57:57 +01:00
2023-11-08 17:30:49 +01:00
2020-05-06 21:04:45 +02:00
2020-04-17 15:50:14 +02:00
2019-12-05 10:57:53 +02:00
2022-01-20 09:17:50 +01:00
2020-04-17 15:50:08 +02:00
2019-06-05 17:36:37 +02:00
2022-08-21 15:16:13 +02:00
2022-04-08 14:40:33 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2020-03-02 16:32:04 +01:00
2019-06-05 17:36:37 +02:00
2020-08-23 17:36:59 -05:00
2019-12-05 10:57:53 +02:00