CVE-2026-139028: power: supply: bq27xxx: Ensure poll work is cancelled on remove

Published Nov 30, 2026
·
Updated

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

power: supply: bq27xxx: Ensure poll work is cancelled on remove

The di->work poll work is queued from the poll callback itself and from bq27xxxexternalpowerchanged(). The canceldelayedworksync() in bq27xxxbatteryteardown() runs while the powersupply is still registered, so externalpowerchanged() can re-arm the work after the cancel, and it runs after the driver data has been freed.

Register a devmdelayedworkautocancel() before devmpowersupplyregister(), so on unwind the powersupply is unregistered first, after which no new externalpowerchanged() callback can be dispatched, and the poll work is cancelled only then. Drop the now-redundant cancel from bq27xxxbatteryteardown().

This issue was found by an in-house static analysis tool.

Affected Software

11 affected componentsFixes available
Linux Linux kernel
linux/kernel>=2.6.39<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.118-1
6.12.118-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1
6.12.118-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 5.15.226
  2. Upgrade

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

    Fixed in 6.1.193
  3. Upgrade

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

    Fixed in 6.6.163
  4. Upgrade

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

    Fixed in 6.12.118
  5. Upgrade

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

    Fixed in 6.18.63
  6. Upgrade

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

    Fixed in 7.3.4
  7. Upgrade

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

    Fixed in 6.12.118-1
  8. Upgrade

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

    Fixed in 7.3.4-1
  9. Upgrade

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

    Fixed in 6.12.118-1Fixed in 7.3.4-1
  10. Compensating control

    Register devm_delayed_work_autocancel() before devm_power_supply_register(), and remove the now-redundant cancel_delayed_work_sync() from bq27xxx_battery_teardown().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description
Data Sourced
via OSV·01:27 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this race condition?

Systems using the Linux kernel bq27xxx power-supply driver are implicated. The race occurs during driver removal or error unwinding while the power supply remains registered.

2

What condition is required for the use-after-free to occur?

A poll work item must be cancelled during teardown, then re-queued by bq27xxx_external_power_changed() before the power supply is unregistered. The re-armed work can subsequently run after the driver data has been freed.

3

Is a temporary mitigation provided if the fix cannot be deployed?

No temporary operational workaround is specified in the provided data. The described resolution changes teardown ordering so the power supply is unregistered before delayed poll work is cancelled.

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