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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-10 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2025-38312, DEBIAN-CVE-2025-38312
- Record: https://cvemate.com/vulnerability/CVE-2025-38312 · JSON: https://cvemate.com/vulnerability/CVE-2025-38312/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.2%, percentile 10.35%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 150)

- debian linux (Debian): \< 6.1.147-1 \| \< 6.12.35-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-156.166 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1092.99 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1092.99~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1013.13~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1092.99+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1096.105 \| \< 6.8.0-1046.52
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 48)

- <https://git.kernel.org/stable/c/9027ce4c037b566b658b8939a76326b7125e3627>
- <https://git.kernel.org/stable/c/610f247f2772e4f92b63442125a1b7ade79898d8>
- <https://git.kernel.org/stable/c/2d63433e8eaa3c91b2948190e395bc67009db0d9>
- <https://git.kernel.org/stable/c/54947530663edcbaaee1314c01fdd8c72861b124>
- <https://git.kernel.org/stable/c/ab91647acdf43b984824776559a452212eaeb21a>
- <https://git.kernel.org/stable/c/b235393b9f43ff86a38ca2bde6372312ea215dc5>
- <https://git.kernel.org/stable/c/53784073cbad18f75583fd3da9ffdfc4d1f05405>
- <https://git.kernel.org/stable/c/3f6dae09fc8c306eb70fdfef70726e1f154e173a>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://ubuntu.com/security/CVE-2025-38312>
- <https://www.cve.org/CVERecord?id=CVE-2025-38312>
- <https://git.kernel.org/linus/3f6dae09fc8c306eb70fdfef70726e1f154e173a>
- <https://ubuntu.com/security/notices/USN-7769-1>
- <https://ubuntu.com/security/notices/USN-7770-1>
- <https://ubuntu.com/security/notices/USN-7771-1>
- <https://ubuntu.com/security/notices/USN-7769-2>
- <https://ubuntu.com/security/notices/USN-7774-1>
- <https://ubuntu.com/security/notices/USN-7774-2>

---

Data as of 2026-12-05T05:11:07.810Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
