EnvMap GitHub

CVE-2026-142838

platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()

Not scored yetEPSS 0.35%Received

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from f4627dfd0e1924ad31c6476c0fc2308cfe12b561 before f883de7f96c5748bd6f834c4afd; from f4627dfd0e1924ad31c6476c0fc2308cfe12b561 before 3857d41c7d4db8ad2a6891e3a88; from f4627dfd0e1924ad31c6476c0fc2308cfe12b561 before 7e24cff8bb8147ddc4ca401255e; from f4627dfd0e1924ad31c6476c0fc2308cfe12b561 before 9f3eebbbd1033de0abcc2694ba4; 6.8

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.35% chance of exploitation in the next 30 days, higher than 31% of all CVEs (as of 4 December 2026).

References

Record

Published04:18 UTC, 3 December 2026
Last changed04:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-142838 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.