CVE-2025-38297
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-10

Last updated on: 2025-11-19

Assigner: kernel.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-10
Last Modified
2025-11-19
Generated
2026-05-06
AI Q&A
2025-07-10
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-369 The product divides a value by zero.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a potential division-by-zero error in the Linux kernel's em_compute_costs() function. It occurs because when the device is not a CPU type, a performance value is not initialized, leading to division by zero during cost calculations related to energy efficiency scheduling (EAS). The issue arises from missing checks for non-CPU devices before performing the division.


How can this vulnerability impact me? :

The impact of this vulnerability is limited to the energy efficiency calculations within the Linux kernel's EAS framework. Since the cost algorithm is only used for EAS energy efficiency calculations and not by other device drivers, the practical impact is likely limited to incorrect or failed energy efficiency computations, which could affect power management but not cause broader system failures or security breaches.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

This vulnerability does not directly affect compliance with common standards and regulations such as GDPR or HIPAA, as it relates to an internal kernel calculation error without direct impact on data privacy, security, or regulatory requirements.


What immediate steps should I take to mitigate this vulnerability?

Apply the patch or update to the fixed version of the Linux kernel that includes the fix for the division-by-zero error in em_compute_costs(). Specifically, ensure that the _is_cpu_device(dev) check is implemented to prevent the division-by-zero issue in energy efficiency calculations.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart