summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-10-26 19:52:26 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-10-28 10:35:32 +0100
commitbaa14758afb3e2828de1f76511edc1de50216f39 (patch)
tree5f9d216537cbc5bc32cfc02aa6c23b87cfb905ef /rust/kernel/alloc/allocator
parent13467fd6998f5da4f5b4f172f1af3d9c48d5de8f (diff)
gpio: brcmstb: fix UAF after IRQ domain setup failure
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. Set priv->irq_domain 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. Fixes: 0ba31dc201de ("gpio: brcmstb: consolidate interrupt domains") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://patch.msgid.link/20261026115227.41779-1-lgs201920130244@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions