All reports
Medium

kernel: Linux kernel: Denial of Service via division-by-zero in energy efficiency calculation

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-38297

Probability of exploitation in the next 30 days: 0.18%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel. A local user could exploit a division-by-zero error in the em_compute_costs() function. This occurs when a non-CPU type device is used, leading to an uninitialized performance value during energy efficiency calculations. Successful exploitation can result in a Denial of Service (DoS).