# CVE-2026-142838: platform/x86/amd/pmf: Fix power\_supply refcount leak in amd\_pmf\_get\_battery\_prop()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:50.988Z
- **Modified:** 2026-12-03T04:18:19.977Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access can trigger a power supply refcount leak in the Linux kernel AMD PMF driver, causing battery unregistration to fail and memory to leak.

## Who should check

- Anyone running Linux \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< f883de7f96c5748bd6f834c4afdedb7142315574; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9
- Anyone running Linux 6.8

## Description

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

platform/x86/amd/pmf: Fix power\_supply refcount leak in amd\_pmf\_get\_battery\_prop()

power\_supply\_get\_by\_name() takes a reference that is only dropped on
the error path. On success it leaks, five times per policy evaluation.
Unregistering the battery later trips the use\_cnt WARN\_ON in
power\_supply\_unregister() and never frees it.

While here, return -ENODEV instead of an uninitialised 'value' when
no battery matches, and stop at the first supply found rather than
letting the last one in the table win.

Found by reading the code. Fix and changelog drafted with Claude Code
(Fable 5.1) and reviewed by hand. Compile-tested only (allmodconfig,
W=1, sparse); not run on Smart PC hardware.

## Affected and fixed versions

- Linux: \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< f883de7f96c5748bd6f834c4afdedb7142315574; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 (cvelist)
- Linux: 6.8 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-142838.md
Affected: Linux >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < f883de7f96c5748bd6f834c4afdedb7142315574; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; >= f4627dfd0e1924ad31c6476…
Fixed in: Linux 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075, Linux 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4, Linux 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9

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-2026-142838 being exploited?

There is no confirmed exploitation: CVE-2026-142838 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142838?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142838?

Linux \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< f883de7f96c5748bd6f834c4afdedb7142315574; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; \>= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, \< 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9; Linux 6.8.

### Is there a fix for CVE-2026-142838?

Yes. Fixed in Linux 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075, Linux 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4, Linux 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9. Upgrade Linux to 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 or later.

### How do I check if I'm affected by CVE-2026-142838?

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

- other: <https://git.kernel.org/stable/c/f883de7f96c5748bd6f834c4afdedb7142315574>
- other: <https://git.kernel.org/stable/c/3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075>
- other: <https://git.kernel.org/stable/c/7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4>
- other: <https://git.kernel.org/stable/c/9f3eebbbd1033de0abcc2694ba4b455d30fe33f9>

## 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-2026-142838>

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