Bug 2587194 (CVE-2026-139028) - CVE-2026-139028 kernel: kernel: Denial of Service via use-after-free in bq27xxx battery driver
Summary: CVE-2026-139028 kernel: kernel: Denial of Service via use-after-free in bq27x...
Keywords:
Status: NEW
Alias: CVE-2026-139028
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 15:05 UTC by OSIDB Bzimport
Modified: 2026-12-01 13:00 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 15:05:09 UTC
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
bq27xxx_external_power_changed(). The cancel_delayed_work_sync() in
bq27xxx_battery_teardown() runs while the power_supply is still
registered, so external_power_changed() can re-arm the work after the
cancel, and it runs after the driver data has been freed.

Register a devm_delayed_work_autocancel() before
devm_power_supply_register(), so on unwind the power_supply is
unregistered first, after which no new external_power_changed()
callback can be dispatched, and the poll work is cancelled only then.
Drop the now-redundant cancel from bq27xxx_battery_teardown().

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


Note You need to log in before you can comment on or make changes to this bug.