High severity · published Sep 11, 2026
CVE-2026-89472
power: supply: charger-manager: register regulators before exposing sysfs
7.8
CVSS
0.2%
EPSS
No
On KEV
Description
In the Linux kernel, the following vulnerability has been resolved:
power: supply: charger-manager: register regulators before exposing sysfs
charger_manager_remove() and the err_reg_extcon probe error path free each
charger regulator with regulator_put() before tearing down the power_supply
sysfs entries (power_supply_unregister()). charger_manager_remove() also
calls try_charger_enable(cm, false) after the regulator_put() loop. A
concurrent write to a charger's externally_control sysfs attribute that
lands between regulator_put() and power_supply_unregister() can run
charger_externally_control_store() and call try_charger_enable(), which,
when charging is enabled, dereferences the already-freed consumer handle.
When charging is enabled, try_charger_enable(cm, false) in .remove() also
dereferences the freed handles directly. Both leave use-after-free windows.
Symmetrically, probe registers the sysfs entries (power_supply_register)
before acquiring the regulators (regulator_get, inside
charger_manager_register_extcon), so userspace can reach externally_control
before the regulators are available.
Split charger_manager_register_extcon() on the sync/async boundary:
charger_manager_get_regulators() (regulator_get only, no async producer)
now runs before power_supply_register() so sysfs is not live before
regulators are available, and charger_manager_register_extcon() keeps only
the extcon notifier/work setup, still after power_supply_register() so a
power_supply_register() failure cannot reach extcon setup. This keeps the
sysfs setup/teardown ordering symmetric without introducing an asynchronous
producer on the earlier probe-error path.
Move power_supply_unregister() and try_charger_enable(cm, false) ahead of
the regulator_put() loop on both teardown paths, and adjust err_reg_extcon
(power_supply_unregister() then fall through err_regulator for
regulator_put(); get_regulators self-rolls back on its own failure).
This does not address the separate extcon-notifier-driven deref of the same
handles, which needs its own synchronization design.
Found by an in-house static analysis tool.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 6% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
Linux · Linux
3950c7865cd7c963982a2c94457182b96732f4c9 before 6e1645a6ee85d070c2d8dd847f1ce110dc2455c1; 3950c7865cd7c963982a2c94457182b96732f4c9 before af3ce383ba0d0d48957a22ac7058ff5698775898; 3950c7865cd7c963982a2c94457182b96732f4c9 before 86e4fa65368f3bbb506dddba8c9eedc75bd603b2; 3950c7865cd7c963982a2c94457182b96732f4c9 before 6d532582ff3c420598f02945b13184c738cc1581; 3950c7865cd7c963982a2c94457182b96732f4c9 before c57cb36f76eb7ced45f57af1a890d8f3a6d76342; 3.7 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-89472
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-89472
git.kernel.org
https://git.kernel.org/stable/c/6d532582ff3c420598f02945b13184c738cc1581
git.kernel.org
https://git.kernel.org/stable/c/6e1645a6ee85d070c2d8dd847f1ce110dc2455c1
git.kernel.org
https://git.kernel.org/stable/c/86e4fa65368f3bbb506dddba8c9eedc75bd603b2
git.kernel.org
https://git.kernel.org/stable/c/af3ce383ba0d0d48957a22ac7058ff5698775898
git.kernel.org
https://git.kernel.org/stable/c/c57cb36f76eb7ced45f57af1a890d8f3a6d76342
More from Linux
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
7.8
CVE-2026-53362
ipv6: account for fraggap on the paged allocation path
7.8
CVE-2026-46300
net: skbuff: preserve shared-frag marker during coalescing
7.8
CVE-2026-31431
crypto: algif_aead - Revert to operating out-of-place
