5.5medium
PM: EM: Fix potential division-by-zero error in em_compute_costs()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 before 81d72f9241d884ec29524431f74f8009310cfa0c, from 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 before 14cbdd64f3870cf0a2d94b87919b9056448c59a0, from 1b600da510735a0f92c8b4140a7e2cb037a6a6c3 before 179c0c7044a378198adb36f2a12410ab68cc730a, 6.9 Not affected: before 6.9, from 6.12.34 up to 6.12.*, from 6.15.3 up to 6.15.*, from 6.16 up to * | CVE List |
| linux linux_kernel | from 6.9 before 6.12.34, from 6.13 before 6.15.3 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: PM: EM: Se corrige un posible error de división por cero en em_compute_costs(). Cuando el dispositivo no es de tipo CPU, table[i].performance no se inicializa en la función em_init_performance() anterior, lo que resulta en una división por cero al calcular los costos en em_compute_costs(). Dado que el algoritmo "cost" solo se utiliza para cálculos de eficiencia energética de EAS y actualmente no lo utilizan otros controladores de dispositivos, se debe agregar la comprobación _is_cpu_device(dev) para evitar este problema de división por cero.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38297 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-38297 changed 2026-06-17 | Public domain |