{"id":"CVE-2025-38297","summary":"PM: EM: Fix potential division-by-zero error in em_compute_costs()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: EM: Fix potential division-by-zero error in em_compute_costs()\n\nWhen the device is of a non-CPU type, table[i].performance won't be\ninitialized in the previous em_init_performance(), resulting in division\nby zero when calculating costs in em_compute_costs().\n\nSince the 'cost' algorithm is only used for EAS energy efficiency\ncalculations and is currently not utilized by other device drivers, we\nshould add the _is_cpu_device(dev) check to prevent this division-by-zero\nissue.","modified":"2026-03-20T12:42:47.452130Z","published":"2025-07-10T07:42:10.918Z","related":["SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","openSUSE-SU-2026:20287-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38297.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/14cbdd64f3870cf0a2d94b87919b9056448c59a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/179c0c7044a378198adb36f2a12410ab68cc730a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/81d72f9241d884ec29524431f74f8009310cfa0c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38297.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38297"},{"type":"PACKAGE","url":"https://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"},{"fixed":"14cbdd64f3870cf0a2d94b87919b9056448c59a0"},{"fixed":"179c0c7044a378198adb36f2a12410ab68cc730a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38297.json"}}],"schema_version":"1.7.5"}