CVE-2025-38312
fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()
Mitigation
- Upgrade Linux to 3f6dae09fc8c306eb70fdfef70726e1f154e173a or later.
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
Vulnerability facts
- Affected
- Linux >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 9027ce4c037b566b658b8939a76326b7125e3627; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 610f247f2772e4f92b63442125a1b7ade79898d8; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 2d63433e8eaa3c91b2948190e395bc67009db0d9; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 54947530663edcbaaee1314c01fdd8c72861b124; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < ab91647acdf43b984824776559a452212eaeb21a; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < b235393b9f43ff86a38ca2bde6372312ea215dc5; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 53784073cbad18f75583fd3da9ffdfc4d1f05405; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 3f6dae09fc8c306eb70fdfef70726e1f154e173a; Linux 2.6.14
- Fixed in
- Linux 9027ce4c037b566b658b8939a76326b7125e3627, Linux 610f247f2772e4f92b63442125a1b7ade79898d8, Linux 2d63433e8eaa3c91b2948190e395bc67009db0d9, Linux 54947530663edcbaaee1314c01fdd8c72861b124, Linux 53784073cbad18f75583fd3da9ffdfc4d1f05405, Linux 3f6dae09fc8c306eb70fdfef70726e1f154e173a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-369
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 9027ce4c037b566b658b8939a76326b7125e3627; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 610f247f2772e4f92b63442125a1b7ade79898d8; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 2d63433e8eaa3c91b2948190e395bc67009db0d9; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 54947530663edcbaaee1314c01fdd8c72861b124; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < ab91647acdf43b984824776559a452212eaeb21a; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < b235393b9f43ff86a38ca2bde6372312ea215dc5; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 53784073cbad18f75583fd3da9ffdfc4d1f05405; >= 96fe6a2109db29cd15b90a093c16e6cb4b19371a, < 3f6dae09fc8c306eb70fdfef70726e1f154e173a | — | cvelist |
| Linux | 2.6.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- 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
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.