[PATCH] gpio: brcmstb: fix UAF after IRQ domain setup failure
Bartosz Golaszewski
bartosz.golaszewski at oss.qualcomm.com
Wed Oct 28 02:35:36 PDT 2026
On Mon, 26 Oct 2026 19:52:26 +0800, Guangshuo Li wrote:
> When devm_request_irq() fails in brcmstb_gpio_irq_setup(), the error
> path removes the IRQ domain but leaves priv->irq_domain non-NULL.
>
> The probe error path subsequently calls brcmstb_gpio_remove(), which
> checks priv->irq_domain and attempts to access the already-freed
> domain through irq_find_mapping(). It also attempts to remove the
> domain again, resulting in a use-after-free and potentially further
> memory corruption.
>
> [...]
Applied, thanks!
[1/1] gpio: brcmstb: fix UAF after IRQ domain setup failure
https://git.kernel.org/brgl/c/baa14758afb3e2828de1f76511edc1de50216f39
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list