CVE-2026-142838: platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()

Published Dec 3, 2026
·
Updated

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

platform/x86/amd/pmf: Fix powersupply refcount leak in amdpmfgetbatteryprop()

powersupplygetbyname() 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 usecnt WARNON in powersupplyunregister() 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 Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.8.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4

Event History

Dec 3, 2026
CVE Published
via MITRE·03:20 AM
Data Sourced
via MITRE·03:20 AM
Description
Data Sourced
via OSV·03:20 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue is in the Linux kernel's AMD PMF platform driver and occurs when amd_pmf_get_battery_prop() evaluates battery properties. Each successful policy evaluation leaks five power_supply references.

2

How can I tell whether the leak has occurred?

When the affected battery power supply is later unregistered, power_supply_unregister() can trigger a use_cnt WARN_ON. The battery power supply is then not freed.

3

What happens if no matching battery power supply is found?

The corrected code returns -ENODEV when no battery matches. It also stops after finding the first matching power supply instead of allowing a later table entry to replace it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203