# CVE-2025-38610: powercap: dtpm\_cpu: Fix NULL pointer dereference in get\_pd\_power\_uw()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-08-19T17:03:53.255Z
- **Modified:** 2026-06-17T09:17:12.730Z

## Who should check

- Anyone running Linux \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27914f2b795e2b58e9506f281dcdd98fef09d3c2; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< c6ec27091cf5ac05094c1fe3a6ce914cf711a37c; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 8374ac7d69a57d737e701a851ffe980a0d27d3ad; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27e0318f0ea69fcfa32228847debc384ade14578; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 2fd001a0075ac01dc64a28a8e21226b3d989a91d; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 46dc57406887dd02565cb264224194a6776d882b
- Anyone running Linux 5.16

## 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 \]

## Affected and fixed versions

- Linux: \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27914f2b795e2b58e9506f281dcdd98fef09d3c2; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< c6ec27091cf5ac05094c1fe3a6ce914cf711a37c; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 8374ac7d69a57d737e701a851ffe980a0d27d3ad; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27e0318f0ea69fcfa32228847debc384ade14578; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 2fd001a0075ac01dc64a28a8e21226b3d989a91d; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 46dc57406887dd02565cb264224194a6776d882b (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 46dc57406887dd02565cb264224194a6776d882b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38610. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38610.md
Affected: Linux >= eb82bace893169b319c563b7f813c58a0a5a9f76, < 27914f2b795e2b58e9506f281dcdd98fef09d3c2; >= eb82bace893169b319c563b7f813c58a0a5a9f76, < c6ec27091cf5ac05094c1fe3a6ce914cf711a37c; >= eb82bace893169b319c563b7f813c58a0a5a9f76, < 8374ac7d69a57d737e701a851ffe980a0d27d3ad; >= eb82bace893169b319c563b…
Fixed in: Linux 27914f2b795e2b58e9506f281dcdd98fef09d3c2, Linux 8374ac7d69a57d737e701a851ffe980a0d27d3ad, Linux 27e0318f0ea69fcfa32228847debc384ade14578, Linux 2fd001a0075ac01dc64a28a8e21226b3d989a91d, Linux 46dc57406887dd02565cb264224194a6776d882b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38610 being exploited?

There is no confirmed exploitation: CVE-2025-38610 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38610?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38610?

Linux \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27914f2b795e2b58e9506f281dcdd98fef09d3c2; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< c6ec27091cf5ac05094c1fe3a6ce914cf711a37c; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 8374ac7d69a57d737e701a851ffe980a0d27d3ad; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 27e0318f0ea69fcfa32228847debc384ade14578; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 2fd001a0075ac01dc64a28a8e21226b3d989a91d; \>= eb82bace893169b319c563b7f813c58a0a5a9f76, \< 46dc57406887dd02565cb264224194a6776d882b; Linux 5.16.

### Is there a fix for CVE-2025-38610?

Yes. Fixed in Linux 27914f2b795e2b58e9506f281dcdd98fef09d3c2, Linux 8374ac7d69a57d737e701a851ffe980a0d27d3ad, Linux 27e0318f0ea69fcfa32228847debc384ade14578, Linux 2fd001a0075ac01dc64a28a8e21226b3d989a91d, Linux 46dc57406887dd02565cb264224194a6776d882b. Upgrade Linux to 46dc57406887dd02565cb264224194a6776d882b or later.

### How do I check if I'm affected by CVE-2025-38610?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/27914f2b795e2b58e9506f281dcdd98fef09d3c2>
- patch: <https://git.kernel.org/stable/c/c6ec27091cf5ac05094c1fe3a6ce914cf711a37c>
- patch: <https://git.kernel.org/stable/c/8374ac7d69a57d737e701a851ffe980a0d27d3ad>
- patch: <https://git.kernel.org/stable/c/27e0318f0ea69fcfa32228847debc384ade14578>
- patch: <https://git.kernel.org/stable/c/2fd001a0075ac01dc64a28a8e21226b3d989a91d>
- patch: <https://git.kernel.org/stable/c/46dc57406887dd02565cb264224194a6776d882b>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38610>

HTML: <https://flawdb.com/CVE-2025-38610> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38610>
