CVE-2025-38312
fbdev: core: fbcvt: avoid division by 0 in fb_cvt_hperiod()
Reported by linux · Published July 10, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| kernel-headers | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-devel | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.12.35-55.103.amzn2023 |
| perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-tools | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.12.35-55.103.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a |
| Linux | Linux | 2.6.14, 0, 5.4.295 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.12 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel | 0 |
| Linux | linux_kernel | |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Linux | Linux | 6.16, 96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a |
| amazon:2023 | python3-perf6.12 | 0 |
| linux | linux_kernel | 2.6.14, 2.6.14, 2.6.14 |
…and 7 more
Timeline
- Jul 9, 2025 CVE Published
- Jul 10, 2025 EPSS Score (30 in total, the first dated here)
- Oct 11, 2025 PoC Published (16 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (138 in total, the first dated here)
- Mar 29, 2026 Security Advisory (144 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Oct 7, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38312
vulnetix vdb fixes CVE-2025-38312
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38312/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart