CVE-2025-38312

fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()

MEDIUM
5.5
CVSS Score
Published: July 10, 2025 at 07:42 AM UTC
Updated: October 15, 2026 at 01:07 AM UTC
5 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod() In fb_find_mode_cvt(), iff mode->refresh somehow happens to be 0x80000000, cvt.f_refresh will become 0 when multiplying it by 2 due to overflow. It's then passed to fb_cvt_hperiod(), where it's used as a divider -- division by 0 will result in kernel oops. Add a sanity check for cvt.f_refresh to avoid such overflow... Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.14 ≤ v < 5.10.2392.6.14 ≤ v < 5.15.1862.6.14 ≤ v < 5.4.2952.6.14 ≤ v < 6.1.1422.6.14 ≤ v < 6.12.342.6.14 ≤ v < 6.15.32.6.14 ≤ v < 6.162.6.14 ≤ v < 6.6.945.11 ≤ v < 5.15.1865.16 ≤ v < 6.1.1425.5 ≤ v < 5.10.2396.13 ≤ v < 6.15.36.2 ≤ v < 6.6.946.7 ≤ v < 6.12.342.6.1496fe6a2109db29cd15b90a093c16e6cb4b19371a
Vendor states this is fixed in 2d63433e8eaa3c91b2948190e395bc67009db0d9 (fixed)
Vendor states this is fixed in 3f6dae09fc8c306eb70fdfef70726e1f154e173a (fixed)
Vendor states this is fixed in 53784073cbad18f75583fd3da9ffdfc4d1f05405 (fixed)
Vendor states this is fixed in 54947530663edcbaaee1314c01fdd8c72861b124 (fixed)
Vendor states this is fixed in 610f247f2772e4f92b63442125a1b7ade79898d8 (fixed)
Vendor states this is fixed in 9027ce4c037b566b658b8939a76326b7125e3627 (fixed)
Vendor states this is fixed in ab91647acdf43b984824776559a452212eaeb21a (fixed)
Vendor states this is fixed in b235393b9f43ff86a38ca2bde6372312ea215dc5 (fixed)
Vendor states this is fixed in 2.6.14 (unaffected)
Vendor states this is fixed in 5.10.239 (unaffected)
Vendor states this is fixed in 5.15.186 (unaffected)
Vendor states this is fixed in 5.4.295 (unaffected)
Vendor states this is fixed in 6.1.142 (unaffected)
Vendor states this is fixed in 6.12.34 (unaffected)
Vendor states this is fixed in 6.15.3 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.94 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d63433e8eaa3c91b2948190e395bc67009db0d9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3f6dae09fc8c306eb70fdfef70726e1f154e173a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/53784073cbad18f75583fd3da9ffdfc4d1f05405
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/54947530663edcbaaee1314c01fdd8c72861b124
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/610f247f2772e4f92b63442125a1b7ade79898d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9027ce4c037b566b658b8939a76326b7125e3627
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ab91647acdf43b984824776559a452212eaeb21a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b235393b9f43ff86a38ca2bde6372312ea215dc5

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-369

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card