CVE-2025-38297

PM: EM: Fix potential division-by-zero error in em_compute_costs()

published July 10, 2025

CVSS
—
EPSS
0%
Percentile
6.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00174 · 6.5th percentile
Published
2025-07-10T07:42Z
EPSS history
Timeline
  • 10 JUL 07:42Z
    PM: EM: Fix potential division-by-zero error in em_compute_costs()
    cvelistv5