Skip to contentSkip to conversation

CVE-2026-31603: staging: sm750fb: fix division by zero in ps_to_hz()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-31603 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.83 with commit 2f640c6043aeab31a2f607d7605271860c3b11df
	Fixed in 6.18.24 with commit 1412ba36597a82e928f20047f41d6c6582dafe8a
	Fixed in 6.19.14 with commit 6144895a4335a2491c282931f1f2fa610b86339f
	Fixed in 7.0.1 with commit daf6733bd7c4c5015b431739ac29b0e29021096b

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31603

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/staging/sm750fb/sm750.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2f640c6043aeab31a2f607d7605271860c3b11df
	https://git.kernel.org/stable/c/1412ba36597a82e928f20047f41d6c6582dafe8a
	https://git.kernel.org/stable/c/6144895a4335a2491c282931f1f2fa610b86339f
	https://git.kernel.org/stable/c/daf6733bd7c4c5015b431739ac29b0e29021096b
	https://git.kernel.org/stable/c/75a1621e4f91310673c9acbcbb25c2a7ff821cd3