Use-after-free in Linux kernel brcmstb GPIO driver
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel from 4.15 contains a use-after-free in the brcmstb GPIO driver. When devm_request_irq() fails in brcmstb_gpio_irq_setup(), the driver removes the IRQ domain but keeps a pointer to it, so the probe error path later accesses and removes the already freed domain.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7 or 7.4-rc3, or to a later version of its branch.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Linux (Linux) Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-12-03 Threatist record created from CVE-2026-143058
- 2026-12-03 Alias added: GHSA-j39h-j65g-mrgp
- 2026-12-03 Affected versions changed · Red Hat
- 2026-12-03 CVSS score added · Red Hat
References
Other 6
- https://git.kernel.org/stable/c/ae57126e5e8fd2883ff64bccc442a59b227ef804
- https://git.kernel.org/stable/c/8c70068d8fecfd5f4d9a0487edcdcbc17c81c0e8
- https://git.kernel.org/stable/c/40a6f3ffed2051a88ae5eab772a43464e216f000
- https://git.kernel.org/stable/c/2d175ac3b6e76ba5fdf18fedb54bf4f87cb33be8
- https://git.kernel.org/stable/c/1526045b4fa863a72b16bc2e3ac9350ca13a53c9
- https://git.kernel.org/stable/c/baa14758afb3e2828de1f76511edc1de50216f39
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-143058 · CVE Program
- CVE-2026-143058 · NVD
- FIRST EPSS
- GHSA-j39h-j65g-mrgp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-143058 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences