VDB

CVE-2025-38297

CVE-2025-38297 PUBLISHED

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.

PackageEcosystemFixed in
perf6.12Amazon Linux6.12.35-55.103.amzn2023
LinuxLinux14cbdd64f3870cf0a2d94b87919b9056448c59a0

Risk scores

EPSS Score
0.18%
7.4th percentile

Affected products

VendorProductVersions
LinuxLinux1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3
LinuxLinux6.9, 0, 6.12.34
amazon:2023perf6.120
LinuxLinux1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3, 1b600da510735a0f92c8b4140a7e2cb037a6a6c3
linuxlinux_kernel6.9, 6.9, 6.9
amazon:2023kernel-livepatch-6.12.35-55.1030
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel6.120
amazon:2023kernel-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
amazon:2023python3-perf6.120

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

References

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