Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: sbs-battery: disable polling before supply teardown The managed poll-work cancellation is registered before the power supply, so cleanup unregisters the supply before draining polling. A pending or running poller can then call power_supply_changed() on the released supply. Commit 8d59cf3887fb ("power: supply: sbs-battery: Fix use-after-free in power_supply_changed()") moved the IRQ request after supply registration, but did not change the poll-work cancellation order. Add a later managed action that disables and drains polling before supply teardown. Its retained disabled state prevents external-power callbacks from rearming the poll work after it has been drained. Keep the original autocancel to initialize work before supply callbacks can run and to cover failed supply registration. The teardown ordering issue was found by static analysis.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6d0c5de2fd84a0ad07f0cecea24def3987675192 to < 3146e37745171f9b9b8aab48d9b8dbcb14a186e0affected6d0c5de2fd84a0ad07f0cecea24def3987675192 to < fce1dd31b185ceadb9669162a5a35444b1059960affected6d0c5de2fd84a0ad07f0cecea24def3987675192 to < 190a92be785336a03c36450af560a79a631b192daffected6d0c5de2fd84a0ad07f0cecea24def3987675192 to < 5c1c602463d597c5189ddc5a73dece588ba2c57aaffected
Linux Linux
Default version status: affected
5.13affected0 to < 5.13unaffected6.12.117 to ≤ 6.12.*unaffected6.18.61 to ≤ 6.18.*unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected