CVE-2026-142838
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 versions
Linux kernel versions
6.8
and later are affected. Fixed in
6.12.117,
6.18.63,
7.3.4,
7.4-rc1
and their respective stable series.
References
4 totalFrequently asked questions
-
What is CVE-2026-142838?
CVE-2026-142838 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.8 onward and has been patched in 6.12.117, 6.18.63, 7.3.4 and others. CVE-2026-142838 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2026-142838?
Yes. CVE-2026-142838 has been patched. Fixed versions include 6.12.117, 6.18.63, 7.3.4 and others. If you are running Linux kernel 6.8 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-142838 actively exploited?
No. CVE-2026-142838 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.