CVE-2024-26777: fbdev: sis: Error out if pixclock equals zero

Description

In the Linux kernel, the following vulnerability has been resolved:

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.

Classification

CVE ID: CVE-2024-26777

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 15.26% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/84246c35ca34207114055a87552a1c4289c8fd7e
https://git.kernel.org/stable/c/6db07619d173765bd8622d63809cbfe361f04207
https://git.kernel.org/stable/c/cd36da760bd1f78c63c7078407baf01dd724f313
https://git.kernel.org/stable/c/df6e2088c6f4cad539cf67cba2d6764461e798d1
https://git.kernel.org/stable/c/f329523f6a65c3bbce913ad35473d83a319d5d99
https://git.kernel.org/stable/c/99f1abc34a6dde248d2219d64aa493c76bbdd9eb
https://git.kernel.org/stable/c/1d11dd3ea5d039c7da089f309f39c4cd363b924b
https://git.kernel.org/stable/c/e421946be7d9bf545147bea8419ef8239cb7ca52

Timeline