Skip to contentSkip to conversation

CVE-2026-31605: fbdev: udlfb: avoid divide-by-zero on FBIOPUT_VSCREENINFO

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:

fbdev: udlfb: avoid divide-by-zero on FBIOPUT_VSCREENINFO

Much like commit 19f953e74356 ("fbdev: fb_pm2fb: Avoid potential divide by zero error"), we also need to prevent that same crash from happening in the udlfb driver as it uses pixclock directly when dividing, which will crash.

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

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

	Fixed in 6.12.83 with commit 03797cdee38ef19c87785622d423aabaafb71c5f
	Fixed in 6.18.24 with commit 6de048d78f3029744778b7a2891745f3ca7c209a
	Fixed in 6.19.14 with commit cccbf9b7fdab48ce4feb69c24f7f928aa8e4e8b8
	Fixed in 7.0.1 with commit afaaaa38579f1252bb42b145f6e88a955c4f73f3

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-31605

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/video/fbdev/udlfb.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/03797cdee38ef19c87785622d423aabaafb71c5f
	https://git.kernel.org/stable/c/6de048d78f3029744778b7a2891745f3ca7c209a
	https://git.kernel.org/stable/c/cccbf9b7fdab48ce4feb69c24f7f928aa8e4e8b8
	https://git.kernel.org/stable/c/afaaaa38579f1252bb42b145f6e88a955c4f73f3
	https://git.kernel.org/stable/c/a31e4518bec70333a0a98f2946a12b53b45fe5b9