In the Linux kernel, the following vulnerability has been resolved: gpio: mpc8xxx: Fix potential use-after-free of IRQ domain GPIO chip cleanup can call the to_irq callback while releasing requested GPIOs. Removing the IRQ domain first leaves that callback using a freed domain, both on removal and after an IRQ request failure. Register domain cleanup before GPIO chip registration so devres removes the chip before freeing the domain. This issue was found by our static analysis tool under development.
https://git.kernel.org/stable/c/e1618627070c70b3f7f1380d0dd4c8007c75702f
https://git.kernel.org/stable/c/dcfecb8e0746c24450f829685ab4abc3ec964de9
https://git.kernel.org/stable/c/9e4b35c95fede87bad36f68b7ff1eae94ea6b910
https://git.kernel.org/stable/c/8c036eff499654a4f109b1a64fc0c1687c81842d
https://git.kernel.org/stable/c/6d4d163ac20c4382d9b7997d20eb72412554acad