{"id":"CVE-2026-143058","summary":"gpio: brcmstb: fix UAF after IRQ domain setup failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: brcmstb: fix UAF after IRQ domain setup failure\n\nWhen devm_request_irq() fails in brcmstb_gpio_irq_setup(), the error\npath removes the IRQ domain but leaves priv-\u003eirq_domain non-NULL.\n\nThe probe error path subsequently calls brcmstb_gpio_remove(), which\nchecks priv-\u003eirq_domain and attempts to access the already-freed\ndomain through irq_find_mapping(). It also attempts to remove the\ndomain again, resulting in a use-after-free and potentially further\nmemory corruption.\n\nSet priv-\u003eirq_domain to NULL after removing it so that the common\ncleanup path skips the already-freed IRQ domain.\n\nThis issue was found by our static analysis tool under development.","modified":"2026-12-03T11:01:13.821050597Z","published":"2026-12-03T09:18:35.870Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143058.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1526045b4fa863a72b16bc2e3ac9350ca13a53c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2d175ac3b6e76ba5fdf18fedb54bf4f87cb33be8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/40a6f3ffed2051a88ae5eab772a43464e216f000"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c70068d8fecfd5f4d9a0487edcdcbc17c81c0e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae57126e5e8fd2883ff64bccc442a59b227ef804"},{"type":"WEB","url":"https://git.kernel.org/stable/c/baa14758afb3e2828de1f76511edc1de50216f39"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143058.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143058"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0ba31dc201deb4f47277d7ff676b45da31c530e4"},{"fixed":"ae57126e5e8fd2883ff64bccc442a59b227ef804"},{"fixed":"8c70068d8fecfd5f4d9a0487edcdcbc17c81c0e8"},{"fixed":"40a6f3ffed2051a88ae5eab772a43464e216f000"},{"fixed":"2d175ac3b6e76ba5fdf18fedb54bf4f87cb33be8"},{"fixed":"1526045b4fa863a72b16bc2e3ac9350ca13a53c9"},{"fixed":"baa14758afb3e2828de1f76511edc1de50216f39"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143058.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143058.json"}}],"schema_version":"1.9.2"}