CVE-2025-38297

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38297
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38297.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38297
Downstream
Published
2025-07-10T07:42:10Z
Modified
2025-10-15T15:16:40.640828Z
Summary
PM: EM: Fix potential division-by-zero error in em_compute_costs()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

When the device is of a non-CPU type, table[i].performance won't be initialized in the previous eminitperformance(), resulting in division by zero when calculating costs in emcomputecosts().

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 iscpu_device(dev) check to prevent this division-by-zero issue.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b600da510735a0f92c8b4140a7e2cb037a6a6c3
Fixed
81d72f9241d884ec29524431f74f8009310cfa0c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b600da510735a0f92c8b4140a7e2cb037a6a6c3
Fixed
14cbdd64f3870cf0a2d94b87919b9056448c59a0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b600da510735a0f92c8b4140a7e2cb037a6a6c3
Fixed
179c0c7044a378198adb36f2a12410ab68cc730a

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.24
v6.12.25
v6.12.26
v6.12.27
v6.12.28
v6.12.29
v6.12.3
v6.12.30
v6.12.31
v6.12.32
v6.12.33
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1
v6.15.2
v6.8
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2025-38297-37650ef1",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "144939583288737084500333638108682719560",
                    "224275698060503031064772357438838795421",
                    "149527442181780587685653966777037587040"
                ]
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@179c0c7044a378198adb36f2a12410ab68cc730a",
            "target": {
                "file": "kernel/power/energy_model.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "id": "CVE-2025-38297-4cb0caee",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "144939583288737084500333638108682719560",
                    "224275698060503031064772357438838795421",
                    "149527442181780587685653966777037587040"
                ]
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81d72f9241d884ec29524431f74f8009310cfa0c",
            "target": {
                "file": "kernel/power/energy_model.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "id": "CVE-2025-38297-7e8606a4",
            "signature_type": "Function",
            "digest": {
                "function_hash": "224831880318336435549047536652121651014",
                "length": 841.0
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81d72f9241d884ec29524431f74f8009310cfa0c",
            "target": {
                "file": "kernel/power/energy_model.c",
                "function": "em_compute_costs"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "id": "CVE-2025-38297-a9e2ac89",
            "signature_type": "Function",
            "digest": {
                "function_hash": "2407137756507740862395690566599265976",
                "length": 847.0
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@179c0c7044a378198adb36f2a12410ab68cc730a",
            "target": {
                "file": "kernel/power/energy_model.c",
                "function": "em_compute_costs"
            },
            "deprecated": false,
            "signature_version": "v1"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.34
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.3