A use-after-free vulnerability exists in the Linux kernel power supply driver for bq25980. The issue arises from requesting an IRQ before registering the power_supply handle, causing a race condition during removal where an interrupt may trigger after the handle is freed but before the IRQ handler is unregistered. This can lead to system crashes or memory corruption. A similar race can occur during probe if an interrupt fires before the power_supply handle is initialized. The fix involves ensuring the IRQ is requested only after the power_supply handle registration.