Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: pf1550: drain IRQ work before unregistering supplies The VBUS work calls power_supply_changed(), but its managed cancellation is registered before the supplies. Cleanup can therefore unregister a supply while IRQ-triggered work is still pending. Commit 838767f50747 ("power: supply: pf1550: Fix use-after-free in power_supply_changed()") moved IRQ requests after supply registration, but left work cancellation before the supplies. That change protects the direct IRQ callbacks, while this fix drains the work they queue. Register the three work items after both supplies and before the IRQs. Cleanup then frees the IRQ producers, drains the work, and unregisters the supplies. 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
4b6b6433a97d5863b5340fc87f866d784fdf0783 to < 2a3ac39a7a260895d794e0a175e9b9a8d2acd207affected4b6b6433a97d5863b5340fc87f866d784fdf0783 to < 4856b49317ccd4ce96a0e8970df7d13ce8975a02affected
Linux Linux
Default version status: affected
6.19affected0 to < 6.19unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected