CVE-2025-38312

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

No CVSS score yet EPSS 0.20%

Published 10 Jul 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-38312

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38312 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 9027ce4c037b566b658b8939a76326b7125e3627
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 610f247f2772e4f92b63442125a1b7ade79898d8
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 2d63433e8eaa3c91b2948190e395bc67009db0d9
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 54947530663edcbaaee1314c01fdd8c72861b124
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before ab91647acdf43b984824776559a452212eaeb21a
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before b235393b9f43ff86a38ca2bde6372312ea215dc5
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 53784073cbad18f75583fd3da9ffdfc4d1f05405
affected from 96fe6a2109db29cd15b90a093c16e6cb4b19371a, before 3f6dae09fc8c306eb70fdfef70726e1f154e173a
Other versions: unaffected
Linux
affected 2.6.14
unaffected before 2.6.14
unaffected from 5.4.295 up to and including 5.4.*
unaffected from 5.10.239 up to and including 5.10.*
unaffected from 5.15.186 up to and including 5.15.*
unaffected from 6.1.142 up to and including 6.1.*
unaffected from 6.6.94 up to and including 6.6.*
unaffected from 6.12.34 up to and including 6.12.*
unaffected from 6.15.3 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38312 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38312

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38312
trivy image --scanners vuln IMAGE | grep CVE-2025-38312

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38312 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.