CVE-2026-89472
power: supply: charger-manager: register regulators before exposing sysfs
Reported by linux · Published September 11, 2026
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.
EPSS 0.17% · 6.5th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3950c7865cd7c963982a2c94457182b96732f4c9, 3950c7865cd7c963982a2c94457182b96732f4c9, 3950c7865cd7c963982a2c94457182b96732f4c9 |
| Linux | Linux | 3.7, 0, 6.1.191 |
| linux | linux_kernel | 3.7, 3.7, 3.7 |
| Linux | Linux | 3950c7865cd7c963982a2c94457182b96732f4c9, 3950c7865cd7c963982a2c94457182b96732f4c9, 3950c7865cd7c963982a2c94457182b96732f4c9 |
Timeline
- Sep 11, 2026 CVE Published
- Sep 12, 2026 EPSS Score (11 in total, the first dated here)
- Sep 12, 2026 Coalition ESS Score
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-89472
vulnetix vdb fixes CVE-2026-89472
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89472/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart