# CVE-2025-38312: fbdev: core: fbcvt: avoid division by 0 in fb\_cvt\_hperiod()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2025-07-10T07:42:20.647Z
- **Modified:** 2026-11-05T21:18:26.147Z

## Who should check

- Anyone running Linux \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 9027ce4c037b566b658b8939a76326b7125e3627; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 610f247f2772e4f92b63442125a1b7ade79898d8; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 2d63433e8eaa3c91b2948190e395bc67009db0d9; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 54947530663edcbaaee1314c01fdd8c72861b124; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< ab91647acdf43b984824776559a452212eaeb21a; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< b235393b9f43ff86a38ca2bde6372312ea215dc5; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 53784073cbad18f75583fd3da9ffdfc4d1f05405; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 3f6dae09fc8c306eb70fdfef70726e1f154e173a
- Anyone running Linux 2.6.14

## 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 and fixed versions

- Linux: \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 9027ce4c037b566b658b8939a76326b7125e3627; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 610f247f2772e4f92b63442125a1b7ade79898d8; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 2d63433e8eaa3c91b2948190e395bc67009db0d9; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 54947530663edcbaaee1314c01fdd8c72861b124; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< ab91647acdf43b984824776559a452212eaeb21a; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< b235393b9f43ff86a38ca2bde6372312ea215dc5; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 53784073cbad18f75583fd3da9ffdfc4d1f05405; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 3f6dae09fc8c306eb70fdfef70726e1f154e173a (cvelist)
- Linux: 2.6.14 (cvelist)

## Mitigation

- Upgrade Linux to 3f6dae09fc8c306eb70fdfef70726e1f154e173a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38312. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38312.md
Affected: Linux >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 9027ce4c037b566b658b8939a76326b7125e3627; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 610f247f2772e4f92b63442125a1b7ade79898d8; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 2d63433e8eaa3c91b2948190e395bc67009db0d9; >= 96fe6a2109db29cd15b90a0…
Fixed in: Linux 9027ce4c037b566b658b8939a76326b7125e3627, Linux 610f247f2772e4f92b63442125a1b7ade79898d8, Linux 2d63433e8eaa3c91b2948190e395bc67009db0d9, Linux 54947530663edcbaaee1314c01fdd8c72861b124, Linux 53784073cbad18f75583fd3da9ffdfc4d1f05405, Linux 3f6dae09fc8c306eb70fdfef70726e1f154e173a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38312 being exploited?

There is no confirmed exploitation: CVE-2025-38312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38312?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38312?

Linux \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 9027ce4c037b566b658b8939a76326b7125e3627; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 610f247f2772e4f92b63442125a1b7ade79898d8; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 2d63433e8eaa3c91b2948190e395bc67009db0d9; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 54947530663edcbaaee1314c01fdd8c72861b124; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< ab91647acdf43b984824776559a452212eaeb21a; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< b235393b9f43ff86a38ca2bde6372312ea215dc5; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 53784073cbad18f75583fd3da9ffdfc4d1f05405; \>= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, \< 3f6dae09fc8c306eb70fdfef70726e1f154e173a; Linux 2.6.14.

### Is there a fix for CVE-2025-38312?

Yes. Fixed in Linux 9027ce4c037b566b658b8939a76326b7125e3627, Linux 610f247f2772e4f92b63442125a1b7ade79898d8, Linux 2d63433e8eaa3c91b2948190e395bc67009db0d9, Linux 54947530663edcbaaee1314c01fdd8c72861b124, Linux 53784073cbad18f75583fd3da9ffdfc4d1f05405, Linux 3f6dae09fc8c306eb70fdfef70726e1f154e173a. Upgrade Linux to 3f6dae09fc8c306eb70fdfef70726e1f154e173a or later.

### How do I check if I'm affected by CVE-2025-38312?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9027ce4c037b566b658b8939a76326b7125e3627>
- patch: <https://git.kernel.org/stable/c/610f247f2772e4f92b63442125a1b7ade79898d8>
- patch: <https://git.kernel.org/stable/c/2d63433e8eaa3c91b2948190e395bc67009db0d9>
- patch: <https://git.kernel.org/stable/c/54947530663edcbaaee1314c01fdd8c72861b124>
- patch: <https://git.kernel.org/stable/c/ab91647acdf43b984824776559a452212eaeb21a>
- patch: <https://git.kernel.org/stable/c/b235393b9f43ff86a38ca2bde6372312ea215dc5>
- patch: <https://git.kernel.org/stable/c/53784073cbad18f75583fd3da9ffdfc4d1f05405>
- patch: <https://git.kernel.org/stable/c/3f6dae09fc8c306eb70fdfef70726e1f154e173a>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38312>

HTML: <https://flawdb.com/CVE-2025-38312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38312>
