In the Linux kernel, the following vulnerability has been resolved: gpio: virtuser: fix interrupt leak and UAF When configuring interrupt handlers for GPIOs requested by virtual users, we never verify if an interrupt has been previously requested and just leak it if it was. We also never free the interrupts at device unbind. This is both a leak and a potential UAF bug. We use atomic_t for the irq field for now reason, it can't be modifying or read from atomic context. Let's repurpose the existing consumer_lock mutex and serialize access to the irq field. Let's add sanitization of input and schedule a tear-down action.
https://git.kernel.org/stable/c/e7c506ae22ca46ecadcf05d408977965c0ecdb90
https://git.kernel.org/stable/c/24cafd9580627f9f066296f4a6ce1b282a3f425d
https://git.kernel.org/stable/c/1e94d6b3c7c9bad8acfe9a1e9fe1f34ee4354fa5
https://git.kernel.org/stable/c/1d82149635177c4a87f603853d58c3105df25242