Files
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-08-04 15:54:35 +02:00
2023-08-04 15:54:35 +02:00
2023-08-04 15:54:35 +02:00
2023-08-24 07:26:06 +10:00
2023-08-04 15:54:36 +02:00
2023-08-04 15:54:36 +02:00
2024-01-25 15:45:08 -08:00
2023-08-04 15:54:36 +02:00
2023-08-04 15:54:37 +02:00
2023-11-07 14:42:34 +01:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:38 +02:00
2023-08-04 15:54:38 +02:00
2023-08-04 15:54:38 +02:00
2023-08-04 15:54:38 +02:00