diff options
author | Fullway Wang <fullwaywang@outlook.com> | 2024-01-18 14:24:43 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-21 09:00:14 +0100 |
commit | e421946be7d9bf545147bea8419ef8239cb7ca52 (patch) | |
tree | 281edc1f9f7a2086646371bd19275443b19273e2 /drivers/video/Kconfig | |
parent | 04e5eac8f3ab2ff52fa191c187a46d4fdbc1e288 (diff) | |
download | linux-e421946be7d9bf545147bea8419ef8239cb7ca52.tar.gz linux-e421946be7d9bf545147bea8419ef8239cb7ca52.tar.bz2 linux-e421946be7d9bf545147bea8419ef8239cb7ca52.zip |
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>
Diffstat (limited to 'drivers/video/Kconfig')
0 files changed, 0 insertions, 0 deletions