diff options
author | Wei Chen <harperchen1110@gmail.com> | 2023-03-07 13:08:56 +0000 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-03-14 18:49:39 +0100 |
commit | f90bd245de82c095187d8c2cabb8b488a39eaecc (patch) | |
tree | 3fd755c3ef8f5d2b1f008361c21266e3bc8e4623 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 33bf61c0a1a97e2abff3117751eabad28106a7c5 (diff) |
fbdev: tgafb: Fix potential divide by zero
fb_set_var would by called when user invokes ioctl with cmd
FBIOPUT_VSCREENINFO. User-provided data would finally reach
tgafb_check_var. In case var->pixclock is assigned to zero,
divide by zero would occur when checking whether reciprocal
of var->pixclock is too high.
Similar crashes have happened in other fbdev drivers. There
is no check and modification on var->pixclock along the call
chain to tgafb_check_var. We believe it could also be triggered
in driver tgafb from user site.
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions