CVE-2026-142838

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142839In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-wmi: fix heap OOB read and memory corruption in hp_wmiCVE-2026-142840In the Linux kernel, the following vulnerability has been resolved: mm/zswap: publish the initial pool with list_add_rcu() zswap_setup() pCVE-2026-142841In the Linux kernel, the following vulnerability has been resolved: ext4: skip extra isize expansion while unmounting syzbot reports a WARCVE-2026-142842In the Linux kernel, the following vulnerability has been resolved: ext4: fix fast commit replay failing on a read-only mount A filesystemCVE-2026-142843In the Linux kernel, the following vulnerability has been resolved: spi: stm32: fix double free of SRAM buffer on MDMA fallback When the "CVE-2026-142844In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handCVE-2026-142845In the Linux kernel, the following vulnerability has been resolved: mm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkerCVE-2026-142846In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: skip zero pages page_table_check_set() accounts pCVE-2026-142847In the Linux kernel, the following vulnerability has been resolved: mm/page_isolation: fix UBSAN shift-out-of-bounds warning Patch series CVE-2026-142848In the Linux kernel, the following vulnerability has been resolved: floppy: don't store a stack buffer in timeout_message request_done() fCVE-2026-142849In the Linux kernel, the following vulnerability has been resolved: xfarray: don't crash when sorting if array element crosses a folio LOLCVE-2026-142850In the Linux kernel, the following vulnerability has been resolved: crypto: nx - validate 'ignore' before subtracting in decompress The de
CVE-2026-142838: Unscored | Vulnix