From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
brcm80211-dev-list.pdl@broadcom.com,
linux-kernel@vger.kernel.org,
Arend van Spriel <arend.vanspriel@broadcom.com>
Subject: Re: [PATCH] wifi: brcmfmac: Fix potential use-after-free on monitor registration failure
Date: Tue, 24 Nov 2026 21:13:54 +0100 [thread overview]
Message-ID: <20261124201354.3496134-1-arend.vanspriel@broadcom.com> (raw)
In-Reply-To: <20261116-c29ba55625-wifi-brcmfmac@mail.sdu.edu.cn>
On Mon, 16 Nov 2026 22:13:24 +0800, Guangshuo Li <liguangshuo@mail.sdu.edu.cn> wrote:
> A failed netdevice registration can invoke priv_destructor while
> cfg80211_register_netdevice() still needs the wireless_dev embedded in
> the vif. The caller also frees the vif on this error path.
>
> Install the destructor only after registration succeeds, as done for
> regular interfaces, and leave failed registration cleanup to the caller.
>
> This issue was found by our static analysis tool under development.
> Fixes: 20f2c5fa3af0 ("brcmfmac: add initial support for monitor mode")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
> ---
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Regards,
Arend
prev parent reply other threads:[~2026-11-24 20:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 14:13 Guangshuo Li
2026-11-24 20:13 ` Arend van Spriel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124201354.3496134-1-arend.vanspriel@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®