Bug 2379211 (CVE-2025-38297) - CVE-2025-38297 kernel: PM: EM: Fix potential division-by-zero error in em_compute_costs()
Summary: CVE-2025-38297 kernel: PM: EM: Fix potential division-by-zero error in em_com...
Keywords:
Status: NEW
Alias: CVE-2025-38297
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-10 08:03 UTC by OSIDB Bzimport
Modified: 2025-07-11 08:04 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-10 08:03:49 UTC
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.

Comment 1 Avinash Hanwate 2025-07-11 07:55:23 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025071012-CVE-2025-38297-9dee@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.