CVE-2025-38297

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

State
Published
Severity
Not scored
Published
Jul 10, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 to before 81d72f9241d884ec29524431f74f8009310cfa0cAffected
  • 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 to before 14cbdd64f3870cf0a2d94b87919b9056448c59a0Affected
  • 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 to before 179c0c7044a378198adb36f2a12410ab68cc730aAffected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.12.34 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.