linux-sg2042/drivers/video
Andrey Shumilin 688872c4ea fbdev: sisfb: Fix strbuf array overflow
[ Upstream commit 9cf14f5a27 ]

The values of the variables xres and yres are placed in strbuf.
These variables are obtained from strbuf1.
The strbuf1 array contains digit characters
and a space if the array contains non-digit characters.
Then, when executing sprintf(strbuf, "%ux%ux8", xres, yres);
more than 16 bytes will be written to strbuf.
It is suggested to increase the size of the strbuf array to 24.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Andrey Shumilin <shum.sdl@nppct.ru>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:24:22 +02:00
..
backlight pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
console drm: fix up fbdev Kconfig defaults 2023-09-18 10:52:55 +02:00
fbdev fbdev: sisfb: Fix strbuf array overflow 2024-10-17 15:24:22 +02:00
logo video: logo: Drop full path of the input filename in generated file 2024-08-03 08:54:32 +02:00
Kconfig video: Add helpers for decoding screen_info 2024-08-11 12:47:15 +02:00
Makefile video: Provide screen_info_get_pci_dev() to find screen_info's PCI device 2024-08-11 12:47:15 +02:00
aperture.c video/aperture: Provide a VGA helper for gma500 and internal use 2023-04-16 14:18:10 +02:00
cmdline.c fbdev: Handle video= parameter in video/cmdline.c 2023-02-20 14:56:48 +01:00
display_timing.c
hdmi.c
nomodeset.c
of_display_timing.c
of_videomode.c
screen_info_generic.c video: Add helpers for decoding screen_info 2024-08-11 12:47:15 +02:00
screen_info_pci.c firmware/sysfb: Update screen_info for relocated EFI framebuffers 2024-08-11 12:47:16 +02:00
sticore.c sticon/parisc: Fix STI console on 64-bit only machines 2023-06-30 17:14:14 +02:00
vgastate.c
videomode.c