CVE-2025-38297
PM: EM: Fix potential division-by-zero error in em_compute_costs()
Reported by linux · Published July 10, 2025
In the Linux kernel, the following vulnerability has been resolved: PM: EM: Fix potential division-by-zero error in em_compute_costs() When the device is of a non-CPU type, table[i].performance won't be initialized in the previous em_init_performance(), resulting in division by zero when calculating costs in em_compute_costs(). Since the 'cost' algorithm is only used for EAS energy efficiency calculations and is currently not utilized by other device drivers, we should add the _is_cpu_device(dev) check to prevent this division-by-zero issue.
EPSS 0.18% · 7.4th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
| Linux | Linux | 14cbdd64f3870cf0a2d94b87919b9056448c59a0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 |
| Linux | Linux | 6.9, 0, 6.12.34 |
| amazon:2023 | perf6.12 | 0 |
| Linux | Linux | 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 |
| linux | linux_kernel | 6.9, 6.9, 6.9 |
| amazon:2023 | kernel-livepatch-6.12.35-55.103 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
Timeline
- Jul 9, 2025 CVE Published
- Jul 10, 2025 EPSS Score (30 in total, the first dated here)
- Oct 11, 2025 PoC Published (5 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (103 in total, the first dated here)
- Apr 29, 2026 Security Advisory (109 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38297
vulnetix vdb fixes CVE-2025-38297
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-38297/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart