# CVE-2026-99061: wifi: brcmfmac: fix P2P device removal race in brcmf\_detach()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-23T12:22:59.770Z
- **Modified:** 2026-10-30T13:21:42.887Z

## Who should check

- Anyone running Linux \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 75e917473e20dea61f837f9afb5fc3435c9200d2; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< c4c0659eb74f807e0e73742b101a07b0bb703d97; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 0f84eec09039deb9229fd35c55912a2397d3ae55; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 7b79131e357c4786765b20a994ad40d4d35f2163; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 2e0c8c60a11b3177e7432c71d41249e276a0825f; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< eef16a74ff8ed2a838d6bb862bb2c7783fce7466; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 47ca6395a1d91545cc9403f9218bc61be941a0c3; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 08a3f02fea636e97a7422d1512f76dacdb5b0887
- Anyone running Linux 4.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: brcmfmac: fix P2P device removal race in brcmf\_detach()

When the driver is removed while the user space process that created
the P2P device (e.g. wpa\_supplicant) is still exiting, the P2P device
interface is removed twice and the kernel crashes.

The two paths are:

 - wpa\_supplicant, on exit, sends NL80211\_CMD\_DEL\_INTERFACE for the P2P
   device. nl80211\_del\_interface() holds RTNL and the wiphy mutex and
   calls brcmf\_p2p\_del\_vif(), which disables discovery and waits up to
   1.5 s for BRCMF\_E\_IF\_DEL. Then it calls brcmf\_remove\_interface(),
   which unregisters the wdev and frees the vif and the ifp.

 - brcmf\_detach() sets the bus down, so BRCMF\_E\_IF\_DEL never arrives,
   and calls brcmf\_remove\_interface(ifp, false) for the same ifp.
   brcmf\_p2p\_ifp\_removed() reads ifp-\>vif and then blocks on
   rtnl\_lock(). When brcmf\_p2p\_del\_vif() releases RTNL, it calls
   cfg80211\_unregister\_wdev() on the wdev that was already unregistered
   and freed.

The second list\_del\_rcu() of wdev-\>list faults on LIST\_POISON2:

  brcmfmac: brcmf\_p2p\_del\_vif delete P2P vif
  brcmfmac: brcmf\_p2p\_deinit\_discovery enter
  brcmfmac: brcmf\_p2p\_del\_vif P2P: GO\_NEG\_PHASE status cleared
  brcmfmac: brcmf\_detach Enter
  brcmfmac: brcmf\_bus\_change\_state 1 -\> 0
  brcmfmac: brcmf\_remove\_interface Enter, bsscfgidx=1, ifidx=0
  brcmfmac: brcmf\_del\_if Enter, bsscfgidx=1, ifidx=0
  brcmfmac: brcmf\_p2p\_ifp\_removed P2P: device interface removed
  \[1.5 s later, brcmf\_p2p\_del\_vif() timed out\]
  brcmfmac: brcmf\_remove\_interface Enter, bsscfgidx=1, ifidx=0
  brcmfmac: brcmf\_del\_if Enter, bsscfgidx=1, ifidx=0
  brcmfmac: brcmf\_p2p\_ifp\_removed P2P: device interface removed
  Unable to handle kernel paging request at virtual address dead000000000122
  Internal error: Oops: 96000044 \[\#1\] PREEMPT\_RT SMP
  pc : \_cfg80211\_unregister\_wdev+0x6c/0x264 \[cfg80211\]
  Call trace:
   \_cfg80211\_unregister\_wdev+0x6c/0x264 \[cfg80211\]
   cfg80211\_unregister\_wdev+0x10/0x1c \[cfg80211\]
   brcmf\_p2p\_ifp\_removed+0x84/0xb0 \[brcmfmac\]
   brcmf\_remove\_interface+0x1f4/0x254 \[brcmfmac\]
   brcmf\_detach+0x88/0x180 \[brcmfmac\]
   brcmf\_sdio\_remove+0x90/0x7b0 \[brcmfmac\]
   brcmf\_sdiod\_remove+0x20/0xa0 \[brcmfmac\]
   brcmf\_ops\_sdio\_remove+0xbc/0x12c \[brcmfmac\]
   sdio\_bus\_remove+0x38/0x144
   device\_release\_driver\_internal+0x1e8/0x2c0
   device\_release\_driver+0x14/0x20
   brcmf\_sdio\_bus\_remove+0x2c/0x40 \[brcmfmac\]
   brcmf\_fwvid\_unregister\_vendor+0xd8/0x170 \[brcmfmac\]
   \_\_exit\_compat+0x18/0x418 \[brcmfmac\_cyw\]
   \_\_arm64\_sys\_delete\_module+0x1ac/0x244

The log was taken with debug=0x406 on an i.MX 8M Plus board with a
CYW55513 (Sona IF513) on SDIO. The driver is the Ezurio backport of
brcmfmac from v6.18.22 on a 5.4-rt kernel. The code involved is the same
in mainline.

To reproduce:

  1. Start wpa\_supplicant on wlan0 and let it associate. It creates the
     P2P device (iw dev shows "type P2P-device").
  2. Stop wpa\_supplicant and remove the driver without waiting for
     wpa\_supplicant to exit:

       kill $(pidof wpa\_supplicant)
       rmmod brcmfmac\_cyw brcmfmac

The crash is reproducible on that board.

For the interface without a netdev (the P2P device), take RTNL and the
wiphy mutex in brcmf\_detach() before reading iflist, and remove it with
locked=true. If brcmf\_p2p\_del\_vif() runs first, brcmf\_detach() finds the
slot empty. If brcmf\_detach() runs first, nl80211 does not find the wdev
any more. The interfaces with a netdev are removed as before, because
brcmf\_del\_if() takes RTNL on its own for the primary interface.

## Affected and fixed versions

- Linux: \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 75e917473e20dea61f837f9afb5fc3435c9200d2; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< c4c0659eb74f807e0e73742b101a07b0bb703d97; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 0f84eec09039deb9229fd35c55912a2397d3ae55; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 7b79131e357c4786765b20a994ad40d4d35f2163; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 2e0c8c60a11b3177e7432c71d41249e276a0825f; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< eef16a74ff8ed2a838d6bb862bb2c7783fce7466; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 47ca6395a1d91545cc9403f9218bc61be941a0c3; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 08a3f02fea636e97a7422d1512f76dacdb5b0887 (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- Upgrade Linux to 08a3f02fea636e97a7422d1512f76dacdb5b0887 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99061.md
Affected: Linux >= 9831bcb987df4aff6a1d85975f1dda4c654f298d, < 75e917473e20dea61f837f9afb5fc3435c9200d2; >= 9831bcb987df4aff6a1d85975f1dda4c654f298d, < c4c0659eb74f807e0e73742b101a07b0bb703d97; >= 9831bcb987df4aff6a1d85975f1dda4c654f298d, < 0f84eec09039deb9229fd35c55912a2397d3ae55; >= 9831bcb987df4aff6a1d859…
Fixed in: Linux 75e917473e20dea61f837f9afb5fc3435c9200d2, Linux 0f84eec09039deb9229fd35c55912a2397d3ae55, Linux 7b79131e357c4786765b20a994ad40d4d35f2163, Linux 2e0c8c60a11b3177e7432c71d41249e276a0825f, Linux 47ca6395a1d91545cc9403f9218bc61be941a0c3, Linux 08a3f02fea636e97a7422d1512f76dacdb5b0887

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-2026-99061 being exploited?

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

### How serious is CVE-2026-99061?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99061?

Linux \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 75e917473e20dea61f837f9afb5fc3435c9200d2; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< c4c0659eb74f807e0e73742b101a07b0bb703d97; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 0f84eec09039deb9229fd35c55912a2397d3ae55; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 7b79131e357c4786765b20a994ad40d4d35f2163; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 2e0c8c60a11b3177e7432c71d41249e276a0825f; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< eef16a74ff8ed2a838d6bb862bb2c7783fce7466; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 47ca6395a1d91545cc9403f9218bc61be941a0c3; \>= 9831bcb987df4aff6a1d85975f1dda4c654f298d, \< 08a3f02fea636e97a7422d1512f76dacdb5b0887; Linux 4.4.

### Is there a fix for CVE-2026-99061?

Yes. Fixed in Linux 75e917473e20dea61f837f9afb5fc3435c9200d2, Linux 0f84eec09039deb9229fd35c55912a2397d3ae55, Linux 7b79131e357c4786765b20a994ad40d4d35f2163, Linux 2e0c8c60a11b3177e7432c71d41249e276a0825f, Linux 47ca6395a1d91545cc9403f9218bc61be941a0c3, Linux 08a3f02fea636e97a7422d1512f76dacdb5b0887. Upgrade Linux to 08a3f02fea636e97a7422d1512f76dacdb5b0887 or later.

### How do I check if I'm affected by CVE-2026-99061?

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

- other: <https://git.kernel.org/stable/c/75e917473e20dea61f837f9afb5fc3435c9200d2>
- other: <https://git.kernel.org/stable/c/c4c0659eb74f807e0e73742b101a07b0bb703d97>
- other: <https://git.kernel.org/stable/c/0f84eec09039deb9229fd35c55912a2397d3ae55>
- other: <https://git.kernel.org/stable/c/7b79131e357c4786765b20a994ad40d4d35f2163>
- other: <https://git.kernel.org/stable/c/2e0c8c60a11b3177e7432c71d41249e276a0825f>
- other: <https://git.kernel.org/stable/c/eef16a74ff8ed2a838d6bb862bb2c7783fce7466>
- other: <https://git.kernel.org/stable/c/47ca6395a1d91545cc9403f9218bc61be941a0c3>
- other: <https://git.kernel.org/stable/c/08a3f02fea636e97a7422d1512f76dacdb5b0887>

## 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-2026-99061>

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