kernel_samsung_a53x/drivers/video/fbdev/sis
Fullway Wang 826a3b863e 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-11-18 22:25:32 +01:00
..
300vtbl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
310vtbl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init301.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init301.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
initdef.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
initextlfb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oem300.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oem310.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sis.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sis_accel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sis_accel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sis_main.c fbdev: sis: Error out if pixclock equals zero 2024-11-18 22:25:32 +01:00
sis_main.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgatypes.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vstruct.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00