A use-after-free vulnerability in the Linux kernel's power supply subsystem (sbs-battery) was fixed by changing the order of disabling polling before supply teardown. The issue involved a poller potentially calling power_supply_changed() on a released power supply object due to improper cleanup sequencing. The flaw was identified via static analysis and resolved by adding a managed action to disable and drain polling before teardown, preventing callbacks from rearming polling after cleanup.