CVE-2026-143056: gpio: sodaville: fix use-after-free bug when registering the irqchip
In the Linux kernel, the following vulnerability has been resolved:
gpio: sodaville: fix use-after-free bug when registering the irqchip
In sdvregisterirqsupport(), if irqdomaincreatelegacy() fails during device probing, a generic IRQ chip is left registered in the global gclist while its underlying memory is freed, leading to a use-after-free. Use the managed variant of irqsetupgenericchip() to ensure that the chip gets unregistered before the memory it uses is freed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In sdv_register_irqsupport(), use the managed variant of irq_setup_generic_chip() so the generic IRQ chip is unregistered before its backing memory is freed.
Event History
Frequently Asked Questions
When can this use-after-free occur?
It occurs during device probing when irq_domain_create_legacy() fails in sdv_register_irqsupport(). In that failure path, a generic IRQ chip can remain on the global gc_list after the memory backing it has been freed.
Which systems are exposed to this issue?
The affected component is the Linux kernel gpio-sodaville driver. Exposure requires the Sodaville GPIO driver to be probed and the IRQ-domain creation step to fail; the provided data does not identify specific kernel versions or configurations.
What is the mitigation if an update cannot be applied immediately?
The provided fix changes registration to the managed irq_setup_generic_chip() variant so the IRQ chip is unregistered before its memory is freed. No separate operational workaround is provided in the available data.