A use-after-free vulnerability was identified and fixed in the Linux kernel's gpio mpc8xxx driver. The issue occurs because GPIO chip cleanup can invoke the to_irq callback while releasing GPIOs, potentially using an IRQ domain that has already been freed. The fix involves adjusting the cleanup order to ensure the IRQ domain is not freed before the GPIO chip is fully removed.