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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-17T13:23:17.508Z
- **Modified:** 2026-10-15T01:17:47.423Z

## Who should check

- Anyone running Linux \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 202c503935042272e2f9e1bb549d5f69a8681169; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< bacb8c3ab86dcd760c15903fcee58169bc3026aa; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8c36205123dc57349b59b4f1a2301eb278cbc731; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0b812f706fd7090be74812101114a0e165b36744; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 190794848e2b9d15de92d502b6ac652806904f5a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 6678a1e7d896c00030b31491690e8ddc9a90767a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0a7591e14a8da794d0b93b5d1c6254ccb23adacb; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0f7352557a35ab7888bc7831411ec8a3cbe20d78
- Anyone running Linux 3.7

## 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\]

## Affected and fixed versions

- Linux: \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 202c503935042272e2f9e1bb549d5f69a8681169; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< bacb8c3ab86dcd760c15903fcee58169bc3026aa; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8c36205123dc57349b59b4f1a2301eb278cbc731; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0b812f706fd7090be74812101114a0e165b36744; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 190794848e2b9d15de92d502b6ac652806904f5a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 6678a1e7d896c00030b31491690e8ddc9a90767a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0a7591e14a8da794d0b93b5d1c6254ccb23adacb; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0f7352557a35ab7888bc7831411ec8a3cbe20d78 (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 0f7352557a35ab7888bc7831411ec8a3cbe20d78 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35811. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35811.md
Affected: Linux >= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 202c503935042272e2f9e1bb549d5f69a8681169; >= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1; >= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, < bacb8c3ab86dcd760c15903fcee58169bc3026aa; >= e756af5b30b008f6ffcfebf…
Fixed in: Linux 202c503935042272e2f9e1bb549d5f69a8681169, Linux 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1, Linux 8c36205123dc57349b59b4f1a2301eb278cbc731, Linux 0b812f706fd7090be74812101114a0e165b36744, Linux 190794848e2b9d15de92d502b6ac652806904f5a, Linux 6678a1e7d896c00030b31491690e8ddc9a90767a, Linux 0a759…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35811 being exploited?

There is no confirmed exploitation: CVE-2024-35811 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35811?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35811?

Linux \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 202c503935042272e2f9e1bb549d5f69a8681169; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< bacb8c3ab86dcd760c15903fcee58169bc3026aa; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 8c36205123dc57349b59b4f1a2301eb278cbc731; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0b812f706fd7090be74812101114a0e165b36744; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 190794848e2b9d15de92d502b6ac652806904f5a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 6678a1e7d896c00030b31491690e8ddc9a90767a; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0a7591e14a8da794d0b93b5d1c6254ccb23adacb; \>= e756af5b30b008f6ffcfebf8ad0b477f6f225b62, \< 0f7352557a35ab7888bc7831411ec8a3cbe20d78; Linux 3.7.

### Is there a fix for CVE-2024-35811?

Yes. Fixed in Linux 202c503935042272e2f9e1bb549d5f69a8681169, Linux 8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1, Linux 8c36205123dc57349b59b4f1a2301eb278cbc731, Linux 0b812f706fd7090be74812101114a0e165b36744, Linux 190794848e2b9d15de92d502b6ac652806904f5a, Linux 6678a1e7d896c00030b31491690e8ddc9a90767a, Linux 0a7591e14a8da794d0b93b5d1c6254ccb23adacb, Linux 0f7352557a35ab7888bc7831411ec8a3cbe20d78. Upgrade Linux to 0f7352557a35ab7888bc7831411ec8a3cbe20d78 or later.

### How do I check if I'm affected by CVE-2024-35811?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/202c503935042272e2f9e1bb549d5f69a8681169>
- patch: <https://git.kernel.org/stable/c/8e3f03f4ef7c36091f46e7349096efb5a2cdb3a1>
- patch: <https://git.kernel.org/stable/c/bacb8c3ab86dcd760c15903fcee58169bc3026aa>
- patch: <https://git.kernel.org/stable/c/8c36205123dc57349b59b4f1a2301eb278cbc731>
- patch: <https://git.kernel.org/stable/c/0b812f706fd7090be74812101114a0e165b36744>
- patch: <https://git.kernel.org/stable/c/190794848e2b9d15de92d502b6ac652806904f5a>
- patch: <https://git.kernel.org/stable/c/6678a1e7d896c00030b31491690e8ddc9a90767a>
- patch: <https://git.kernel.org/stable/c/0a7591e14a8da794d0b93b5d1c6254ccb23adacb>
- patch: <https://git.kernel.org/stable/c/0f7352557a35ab7888bc7831411ec8a3cbe20d78>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35811>

HTML: <https://flawdb.com/CVE-2024-35811> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35811>
