A use-after-free vulnerability in the Linux kernel's power supply driver for ab8500 was fixed. The issue arises from a race condition during device removal where an interrupt handler may access a freed power_supply handle, potentially causing system crashes or memory corruption. The flaw was introduced during a refactor and fixed by changing the order of IRQ request and power_supply registration.