CVE-2026-31618: fbdev: tdfxfb: avoid divide-by-zero on FBIOPUT_VSCREENINFO
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fbdev: tdfxfb: 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-31618 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.83 with commit 53cb4e79a07124d2ebe502983c29800104080b47 Fixed in 6.18.24 with commit fc386daa6846551a88d338ba9864fc2812cd9030 Fixed in 6.19.14 with commit 6567d3e1aaadfebf44ce7dc9ea2630323cd4c736 Fixed in 7.0.1 with commit 63dfb0b4741f46d65b667c4275132b3d1966acc8
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-31618
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/tdfxfb.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/53cb4e79a07124d2ebe502983c29800104080b47 https://git.kernel.org/stable/c/fc386daa6846551a88d338ba9864fc2812cd9030 https://git.kernel.org/stable/c/6567d3e1aaadfebf44ce7dc9ea2630323cd4c736 https://git.kernel.org/stable/c/63dfb0b4741f46d65b667c4275132b3d1966acc8 https://git.kernel.org/stable/c/8f98b81fe011e1879e6a7b1247e69e06a5e17af2