CVE-2025-38610

MEDIUM

Linux Kernel - NULL Pointer Dereference in get_pd_power_uw()

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: powercap: dtpm_cpu: Fix NULL pointer dereference in get_pd_power_uw() The get_pd_power_uw() function can crash with a NULL pointer dereference when em_cpu_get() returns NULL. This occurs when a CPU becomes impossible during runtime, causing get_cpu_device() to return NULL, which propagates through em_cpu_get() and leads to a crash when em_span_cpus() dereferences the NULL pointer. Add a NULL check after em_cpu_get() and return 0 if unavailable, matching the existing fallback behavior in __dtpm_cpu_setup(). [ rjw: Drop an excess empty code line ]

Scores

CVSS v3 5.5
EPSS 0.0003
EPSS Percentile 7.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (21)
debian/debian_linux 11.0
linux/Kernel 5.16.0 - 6.1.148linux
linux/Kernel 6.13.0 - 6.15.10linux
linux/Kernel 6.16.0 - 6.16.1linux
linux/Kernel 6.2.0 - 6.6.102linux
linux/Kernel 6.7.0 - 6.12.42linux
Linux/Linux < 5.16
Linux/Linux 5.16
Linux/Linux 6.1.148 - 6.1.*
Linux/Linux 6.12.42 - 6.12.*
... and 11 more
Published Aug 19, 2025
Tracked Since Feb 18, 2026