Fullway Wang
1d11dd3ea5
fbdev: sis: Error out if pixclock equals zero
...
[ Upstream commit e421946be7 ]
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:41:34 +01:00
..
2023-10-31 10:47:50 +10:00
2024-01-25 15:45:13 -08:00
2023-08-04 15:54:35 +02:00
2023-10-19 12:55:32 +02:00
2023-10-19 12:55:40 +02:00
2023-08-24 07:26:06 +10:00
2023-10-19 12:55:45 +02:00
2023-08-24 07:26:06 +10:00
2023-10-23 18:20:06 +10:00
2023-10-19 12:55:53 +02:00
2023-11-07 14:42:34 +01:00
2023-11-10 07:34:19 +01:00
2023-10-19 12:56:16 +02:00
2024-03-01 13:41:34 +01:00
2024-03-01 13:41:34 +01:00
2023-10-19 12:57:11 +02:00
2023-11-07 14:42:34 +01:00
2023-10-19 12:54:16 +02:00
2024-01-25 15:45:13 -08:00
2023-10-19 12:54:27 +02:00
2023-11-10 09:16:02 +01:00
2023-07-24 16:50:39 +02:00
2023-10-19 12:54:34 +02:00
2023-08-04 15:54:34 +02:00
2023-10-19 12:54:38 +02:00
2023-11-10 07:34:19 +01:00
2023-10-19 12:54:46 +02:00
2023-09-29 08:27:15 +10:00
2023-07-31 20:07:24 +02:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:35 +02:00
2023-09-22 16:28:36 +10:00
2023-09-22 16:28:36 +10:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:35 +02:00
2023-10-19 12:54:52 +02:00
2023-07-24 16:50:38 +02:00
2023-10-19 12:54:56 +02:00
2023-10-19 12:54:59 +02:00
2023-10-19 12:55:03 +02:00
2023-08-04 15:54:35 +02:00
2023-10-19 12:55:07 +02:00
2023-08-04 15:54:35 +02:00
2023-10-19 12:55:10 +02:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:35 +02:00
2023-11-10 09:16:02 +01:00
2023-09-02 08:18:40 -07:00
2023-10-19 12:55:14 +02:00
2023-08-24 07:26:06 +10:00
2023-08-24 07:26:06 +10:00
2023-08-04 15:54:36 +02:00
2023-07-31 20:07:24 +02:00
2023-10-19 12:55:17 +02:00
2023-10-19 12:55:23 +02:00
2023-10-19 12:55:27 +02:00
2023-11-10 07:34:19 +01:00
2023-08-04 15:54:36 +02:00
2023-11-07 14:42:34 +01:00
2024-01-25 15:45:08 -08:00
2023-11-03 15:44:25 -10:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:36 +02:00
2023-09-22 16:28:36 +10:00
2023-08-04 15:54:36 +02:00
2023-07-31 20:07:24 +02:00
2023-10-19 12:55:48 +02:00
2023-08-04 15:54:37 +02:00
2023-11-07 14:42:34 +01:00
2023-09-22 16:28:36 +10:00
2023-08-24 07:26:06 +10:00
2023-10-19 12:56:00 +02:00
2023-10-19 12:56:04 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-08-03 16:08:14 +02:00
2023-10-19 12:56:08 +02:00
2023-04-24 11:48:31 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:38 +02:00
2023-10-19 12:56:23 +02:00
2023-08-04 15:54:38 +02:00
2023-10-19 12:56:27 +02:00
2023-10-31 10:47:50 +10:00
2023-07-20 07:56:30 +02:00
2023-08-28 09:43:53 +02:00
2023-08-04 15:54:38 +02:00
2023-07-24 16:50:39 +02:00
2023-08-04 15:54:38 +02:00
2023-07-24 16:50:38 +02:00
2023-10-19 12:56:43 +02:00
2024-01-25 15:44:59 -08:00
2023-09-05 14:13:56 +02:00
2023-09-01 00:29:34 +02:00
2023-08-04 15:54:38 +02:00
2023-10-19 12:56:51 +02:00
2023-10-19 12:56:55 +02:00
2023-08-24 07:26:06 +10:00
2023-08-24 07:26:06 +10:00
2023-09-22 16:28:36 +10:00
2023-10-19 12:56:59 +02:00
2023-10-19 12:57:03 +02:00
2023-10-19 12:57:07 +02:00
2023-09-05 14:13:57 +02:00
2023-10-16 23:19:34 +02:00
2023-08-04 15:54:38 +02:00
2023-08-04 15:54:38 +02:00
2023-07-24 16:50:39 +02:00
2023-11-03 15:44:25 -10:00
2023-07-24 16:50:38 +02:00
2023-10-19 12:57:21 +02:00
2023-07-24 16:50:38 +02:00
2023-05-18 11:06:19 +02:00
2023-07-31 20:07:24 +02:00
2023-08-24 07:26:06 +10:00