CVE-2026-143055: gpio: virtuser: fix interrupt leak and UAF
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 atomict for the irq field for now reason, it can't be modifying or read from atomic context. Let's repurpose the existing consumerlock mutex and serialize access to the irq field. Let's add sanitization of input and schedule a tear-down action.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected?
The issue applies to Linux kernel deployments that use GPIO virtual users and configure interrupt handlers for GPIOs requested by those virtual users. Systems not using this functionality are not identified as exposed by the available information.
When can the flaw be triggered?
It can arise when an interrupt handler is configured for a GPIO that already has an interrupt requested, causing the prior interrupt to leak. Device unbind can also leave interrupts unfreed, creating a potential use-after-free condition.
What does the fix do?
The fix validates input, serializes access to the IRQ field with the existing consumer_lock mutex, and schedules teardown actions to release interrupts.