fbdev: sis: Error out if pixclock equals zero
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 99f1abc34a6dde248d2219d64aa493c76bbdd9eb| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel sis framebuffer driver uses a userspace-supplied pixclock value as a divisor before checking whether it is zero. A local userspace program can pass zero through ioctl() and trigger a divide-by-zero error; the input does not specify authentication requirements or additional user interaction.
Engineers running Linux kernels with the sis framebuffer driver should check their kernel versions; affected versions are not specified.