What’s Vulnerable › Vulnerabilities
CVE-2025-38297: PM: EM: Fix potential division-by-zero error in em_compute_costs()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-10 · updated 2026-06-17
- Weakness: CWE-369
Description
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.
Affected products
- Linux kernel: from 6.9 before 6.12.34; from 6.13 before 6.15.3 — fixed in 6.12.34, 6.15.3
How to fix
Upgrade to a fixed version: Linux kernel 6.12.34, 6.15.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/14cbdd64f3870cf0a2d94b87919b9056448c59a0
- https://git.kernel.org/stable/c/179c0c7044a378198adb36f2a12410ab68cc730a
- https://git.kernel.org/stable/c/81d72f9241d884ec29524431f74f8009310cfa0c
Get alerted when CVE-2025-38297 or the next vulnerability affects your stack