CVE-2026-142838
platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()
Mitigation
- Upgrade Linux to 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 or later.
Who should check
- Anyone running Linux >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < f883de7f96c5748bd6f834c4afdedb7142315574; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9
- Anyone running Linux 6.8
Vulnerability facts
- Affected
- Linux >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < f883de7f96c5748bd6f834c4afdedb7142315574; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9; Linux 6.8
- Fixed in
- Linux 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075, Linux 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4, Linux 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < f883de7f96c5748bd6f834c4afdedb7142315574; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4; >= f4627dfd0e1924ad31c6476c0fc2308cfe12b561, < 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 | — | cvelist |
| Linux | 6.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |