linux-stable/drivers/video/fbdev/sis
Fullway Wang e421946be7 fbdev: sis: Error out if pixclock equals zero
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>
2024-01-21 09:00:14 +01:00
..
300vtbl.h
310vtbl.h
init.c video: fbdev: sis: fix typos in SiS_GetModeID() 2022-07-26 09:16:38 +02:00
init.h
init301.c
init301.h
initdef.h
initextlfb.c
Makefile
oem300.h
oem310.h
sis.h
sis_accel.c fbdev: sisfb: fix repeated word in comment 2022-10-20 08:34:22 +02:00
sis_accel.h
sis_main.c fbdev: sis: Error out if pixclock equals zero 2024-01-21 09:00:14 +01:00
sis_main.h
vgatypes.h
vstruct.h fbdev: sisfb: use explicitly signed char 2022-10-24 20:28:41 +02:00