AZL-118019: CVE-2026-143058 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
gpio: brcmstb: fix UAF after IRQ domain setup failure
When devmrequestirq() fails in brcmstbgpioirqsetup(), the error path removes the IRQ domain but leaves priv->irqdomain non-NULL.
The probe error path subsequently calls brcmstbgpioremove(), which checks priv->irqdomain and attempts to access the already-freed domain through irqfindmapping(). It also attempts to remove the domain again, resulting in a use-after-free and potentially further memory corruption.
Set priv->irqdomain to NULL after removing it so that the common cleanup path skips the already-freed IRQ domain.
This issue was found by our static analysis tool under development.
Affected Software
Event History
Frequently Asked Questions
When can the faulty cleanup path be reached?
It is reached when devm_request_irq() fails during brcmstb_gpio_irq_setup(). The subsequent probe cleanup can then act on an IRQ domain that was already removed.
What is the impact once this path is triggered?
The cleanup path can dereference the already-freed IRQ domain through irq_find_mapping() and attempt to remove the domain a second time. This causes a use-after-free and may lead to further memory corruption.