In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix P2P device removal race in brcmf_detach() When the driver is… (CVE-2026-99061)
Description
A race condition vulnerability in the Linux kernel's brcmfmac WiFi driver caused a kernel crash when the driver was removed while a user space process that created a P2P device was still exiting. This double removal of the P2P device interface leads to a use-after-free fault and kernel oops. The issue occurs due to concurrent removal paths attempting to unregister and free the same device interface.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's brcmfmac WiFi driver arises from a race condition during P2P device removal in the brcmf_detach() function. When the driver is removed while a user space process such as wpa_supplicant is still exiting, the P2P device interface is removed twice. One path involves wpa_supplicant sending NL80211_CMD_DEL_INTERFACE, which leads to disabling discovery and removing the interface. The other path is brcmf_detach() setting the bus down and removing the interface independently. This causes a double free and subsequent kernel crash due to accessing freed memory (LIST_POISON2). The issue was reproducible on an i.MX 8M Plus board with a CYW55513 device and affects the Ezurio backport of brcmfmac from v6.18.22 on a 5.4-rt kernel, with the same code present in mainline. The fix involves taking RTNL and wiphy mutexes in brcmf_detach() before reading the interface list and removing the interface with locked=true to avoid the race.
Potential Impact
The vulnerability causes a kernel crash (kernel oops) due to a double removal and use-after-free of the P2P device interface in the brcmfmac driver. This can lead to denial of service on affected systems when the driver is removed while a user space process managing the P2P device is still exiting. No information about privilege escalation or remote code execution is provided.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source code to properly synchronize the removal of the P2P device interface by taking RTNL and wiphy mutexes in brcmf_detach() and removing the interface with locked=true. Users should update to a kernel version that includes this fix. Since no vendor advisory or patch links are provided, check the Linux kernel mainline or distribution kernel updates for the official fix. Until patched, avoid removing the brcmfmac driver while user space processes managing P2P devices (e.g., wpa_supplicant) are still running or exiting.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5p6f-q3p9-r766
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-99061"]
Threat ID: 6adbaaced73cc49347b2050c
Added to database: 10/23/2026, 18:43:26 UTC
Last enriched: 10/23/2026, 18:50:54 UTC
Last updated: 10/24/2026, 00:45:12 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.