Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792759266; b=hGWUyRMitTz6O35mVEd8ISoVs/RU+Kz1pEDOQgp02ajelkPrWhh6aBwwNrbYmH+72YWc h+Ea/BcUVquxlvTqOw5rhreGMHsby+N88Alh/TB0RcIIanxKtxyWuRka7Ci2Dv6UGKaiv Jy3pf+4N8RZB7iJFM/kyAy1ko2nSdJzpfPgMzhR/94HnRLHfJhZH2wEjTXrVb5UmbrOBv Xe3KvLh5VYrim2m6kLLOo41BC3HkPgnpnXx1frJuo0JeZGeLEa+seiDNSgkBiXKPFHJrt J7uu5uxUwYw1WFS9tZlcakZVSAg/6eUiuz2ki+9dG5WLiCjwZwlDQ20wRGiUdBfqW6A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759266; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=1PtsxFsjw8oQ0BQXPNlGelVR1PMuytnBpkZPj33DjYw=; b=hCYWe7y5j4gUCWcXjg0D/LqGRxtuq5IM5PQNWoblZbiSgDs3r+bpjNPbEiSQcoihFFYO 9UCcdMI5pwZDSh/wj0EojbeZLjI35CBGxPmh0bC8Ud7DhuLW6YceTzD/RYuSnTwf2cjTB wSeM69aGQK2gSQwDQWW6ifLrwPEUUAN5ccDWqeHYaK0lc6oShJhUfngHGd0xb9VQf9IrI 0wp0b89JQh7as6kttMYHw/TGQM07kk05Y/P32Yokc11BY0hr2P/29vksnBs8VmjVib2s4 hFixB/TV+5YhxkuwGOH4P5bFwP/cqkfLR/nBwi57TSe6I9ezrSCxpWOKIa4pwHvNMtQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=prtzuTrv; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10172606A31B for ; Fri, 23 Oct 2026 12:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=prtzuTrv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28CAE1F01825; Fri, 23 Oct 2026 12:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759265; bh=1PtsxFsjw8oQ0BQXPNlGelVR1PMuytnBpkZPj33DjYw=; h=From:To:Cc:Subject:Date:Reply-To; b=prtzuTrvT9Ho/OII1EBLN9zdkUMLMEap/V2EEf7Gts5WFQGwMzmFhXJwzhdsrpwJF LKW2kUbLeOWhhpRas2PYoznk01Ip8eNpprtCdUi2Lz74HhkzLP4mOXZSQ+aRGpfcT7 EbVBUrDNyeMFbxcNCaI5XMxA5K5VyyPdItuTC8Zo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99061: wifi: brcmfmac: fix P2P device removal race in brcmf_detach() Date: Fri, 23 Oct 2026 14:21:03 +0200 Message-ID: <2026102331-CVE-2026-99061-ae69@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6013; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+xP8pBQ0d8h0/KWCnQ8X6c9wHeHeq1q5vUlTI5BCrRI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3Ay5zRC64EP053/vObIujq0KsFp21ervQReJm3IRt6 6K4Iy5ydcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEpPcyzI/23CZX1mw46//+ l0WFZ3YU8u9cdZ9hnjmXyAufrBLP3Z+Tem8E1exaU/5mAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99061 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit 9831bcb987df4aff6a1d85975f1dda4c654f298d and fixed in 6.6.160 with commit 7b79131e357c4786765b20a994ad40d4d35f2163 Issue introduced in 4.4 with commit 9831bcb987df4aff6a1d85975f1dda4c654f298d and fixed in 6.12.113 with commit 2e0c8c60a11b3177e7432c71d41249e276a0825f Issue introduced in 4.4 with commit 9831bcb987df4aff6a1d85975f1dda4c654f298d and fixed in 6.18.57 with commit eef16a74ff8ed2a838d6bb862bb2c7783fce7466 Issue introduced in 4.4 with commit 9831bcb987df4aff6a1d85975f1dda4c654f298d and fixed in 7.2.11 with commit 47ca6395a1d91545cc9403f9218bc61be941a0c3 Issue introduced in 4.4 with commit 9831bcb987df4aff6a1d85975f1dda4c654f298d and fixed in 7.3 with commit 08a3f02fea636e97a7422d1512f76dacdb5b0887 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99061 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/7b79131e357c4786765b20a994ad40d4d35f2163 https://git.kernel.org/stable/c/2e0c8c60a11b3177e7432c71d41249e276a0825f https://git.kernel.org/stable/c/eef16a74ff8ed2a838d6bb862bb2c7783fce7466 https://git.kernel.org/stable/c/47ca6395a1d91545cc9403f9218bc61be941a0c3 https://git.kernel.org/stable/c/08a3f02fea636e97a7422d1512f76dacdb5b0887