staging: sm750fb: fix division by zero in ps_to_hz()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 81dee67e215b23f0c98182eece122b906d35765a · < 1412ba36597a82e928f20047f41d6c6582dafe8a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: sm750fb: fix division by zero in ps_to_hz()
ps_to_hz() is called from hw_sm750_crtc_set_mode() without validating that pixclock is non-zero. A zero pixclock passed via FBIOPUT_VSCREENINFO causes a division by zero.
Fix by rejecting zero pixclock in lynxfb_ops_check_var(), consistent with other framebuffer drivers.
From the CVE record · Linux
The Linux kernel’s sm750fb framebuffer driver does not validate pixclock before using it in a division. A local caller can trigger a division by zero by passing a zero pixclock through FBIOPUT_VSCREENINFO.
Engineers running Linux kernels with the sm750fb framebuffer driver should check their kernel versions; affected versions were not provided.