Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
91581c4b3f29e2e22aeb1a62e842d529ca638b2d to < 1d82149635177c4a87f603853d58c3105df25242affected91581c4b3f29e2e22aeb1a62e842d529ca638b2d to < e7c506ae22ca46ecadcf05d408977965c0ecdb90affected91581c4b3f29e2e22aeb1a62e842d529ca638b2d to < 1e94d6b3c7c9bad8acfe9a1e9fe1f34ee4354fa5affected91581c4b3f29e2e22aeb1a62e842d529ca638b2d to < 24cafd9580627f9f066296f4a6ce1b282a3f425daffected
Linux Linux
Default version status: affected
6.11affected0 to < 6.11unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected