Skip to content

Commit 2479302

Browse files
CIQ Kernel Automationroxanan1996
authored andcommitted
wifi: brcmfmac: validate bsscfg indices in IF events
jira VULN-185621 cve CVE-2026-43110 commit-author Pengpeng Hou <pengpeng@iscas.ac.cn> commit 304950a brcmf_fweh_handle_if_event() validates the firmware-provided interface index before it touches drvr->iflist[], but it still uses the raw bsscfgidx field as an array index without a matching range check. Reject IF events whose bsscfg index does not fit in drvr->iflist[] before indexing the interface array. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com> Link: https://patch.msgid.link/20260323074551.93530-1-pengpeng@iscas.ac.cn [add missing wifi prefix] Signed-off-by: Johannes Berg <johannes.berg@intel.com> (cherry picked from commit 304950a) Signed-off-by: CIQ Kernel Automation <ciq_kernel_automation@ciq.com>
1 parent a584224 commit 2479302

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr,
151151
bphy_err(drvr, "invalid interface index: %u\n", ifevent->ifidx);
152152
return;
153153
}
154+
if (ifevent->bsscfgidx >= BRCMF_MAX_IFS) {
155+
bphy_err(drvr, "invalid bsscfg index: %u\n",
156+
ifevent->bsscfgidx);
157+
return;
158+
}
154159

155160
ifp = drvr->iflist[ifevent->bsscfgidx];
156161

0 commit comments

Comments
 (0)