CVE-2025-38312

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

published July 10, 2025

CVSS
—
EPSS
0%
Percentile
7.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00183 · 7.5th percentile
Published
2025-07-10T07:42Z
EPSS history
Timeline
  • 10 JUL 07:42Z
    fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()
    cvelistv5