VDB

CVE-2025-38312

CVE-2025-38312 PUBLISHED

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.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux1:6.1.144-170.251.amzn2023
kernel-headersAmazon Linux6.12.35-55.103.amzn2023
kernel6.12Amazon Linux6.12.35-55.103.amzn2023
kernel-develAmazon Linux6.12.35-55.103.amzn2023
kernel-libbpf-develAmazon Linux6.12.35-55.103.amzn2023
perfAmazon Linux1:6.1.144-170.251.amzn2023
python3-perfAmazon Linux1:6.1.144-170.251.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.35-55.103.amzn2023
kernelAmazon Linux1:6.1.144-170.251.amzn2023
perf6.12Amazon Linux6.12.35-55.103.amzn2023
kernel-toolsAmazon Linux6.12.35-55.103.amzn2023
kernel-libbpf-staticAmazon Linux6.12.35-55.103.amzn2023

2 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a
LinuxLinux2.6.14, 0, 5.4.295
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0
amazon:2023kernel6.120
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.5
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
amazon:2023perf0
amazon:2023python3-perf0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel0
Linuxlinux_kernel
amazon:2023perf6.120
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-static0
LinuxLinux6.16, 96fe6a2109db29cd15b90a093c16e6cb4b19371a, 96fe6a2109db29cd15b90a093c16e6cb4b19371a
amazon:2023python3-perf6.120
linuxlinux_kernel2.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›