CVE-2026-89472
power: supply: charger-manager: register regulators before exposing sysfs
Check your servers for CVE-2026-89472
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89472 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.47% of all scored CVEs. Scores of 2 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before 5763750916d28a29f1375a14dd6dadd5f2d2e178 affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before 6e1645a6ee85d070c2d8dd847f1ce110dc2455c1 affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before af3ce383ba0d0d48957a22ac7058ff5698775898 affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before 86e4fa65368f3bbb506dddba8c9eedc75bd603b2 affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before 6d532582ff3c420598f02945b13184c738cc1581 affected from 3950c7865cd7c963982a2c94457182b96732f4c9, before c57cb36f76eb7ced45f57af1a890d8f3a6d76342
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.109 up to and including 6.12.* unaffected from 6.18.50 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89472 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89472
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89472
trivy image --scanners vuln IMAGE | grep CVE-2026-89472
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5763750916d28a29f1375a14dd6dadd5f2d2e178 git.kernel.org
- https://git.kernel.org/stable/c/6e1645a6ee85d070c2d8dd847f1ce110dc2455c1 git.kernel.org
- https://git.kernel.org/stable/c/af3ce383ba0d0d48957a22ac7058ff5698775898 git.kernel.org
- https://git.kernel.org/stable/c/86e4fa65368f3bbb506dddba8c9eedc75bd603b2 git.kernel.org
- https://git.kernel.org/stable/c/6d532582ff3c420598f02945b13184c738cc1581 git.kernel.org
- https://git.kernel.org/stable/c/c57cb36f76eb7ced45f57af1a890d8f3a6d76342 git.kernel.org
Source: the record CVE-2026-89472 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse