{"id":"CVE-2025-38297","aliases":["CVE-2025-38297"],"related":[],"kind":"vulnerability","state":"published","title":"PM: EM: Fix potential division-by-zero error in em_compute_costs()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-07-10T07:42:10.918Z","modified":"2026-06-17T09:16:34.347Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"1b600da510735a0f92c8b4140a7e2cb037a6a6c3","fixed":"81d72f9241d884ec29524431f74f8009310cfa0c","status":"affected"},{"type":"git","introduced":"1b600da510735a0f92c8b4140a7e2cb037a6a6c3","fixed":"14cbdd64f3870cf0a2d94b87919b9056448c59a0","status":"affected"},{"type":"git","introduced":"1b600da510735a0f92c8b4140a7e2cb037a6a6c3","fixed":"179c0c7044a378198adb36f2a12410ab68cc730a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.34","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.3","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.9","fixed":"6.12.34"},{"status":"affected","introduced":"6.13","fixed":"6.15.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/81d72f9241d884ec29524431f74f8009310cfa0c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14cbdd64f3870cf0a2d94b87919b9056448c59a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/179c0c7044a378198adb36f2a12410ab68cc730a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38297","url":"https://www.cve.org/CVERecord?id=CVE-2025-38297","licence":"CVE Terms of Use","modified":"2026-05-11T21:25:15.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38297","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38297","licence":"Public domain","modified":"2026-06-17T09:16:34.347Z"}],"updatedAt":"2026-11-25T22:59:01.061Z","epss":{"score":0.00178,"percentile":0.07719,"date":"2026-12-01T12:00:22.000Z"}}