Skip to content

Commit b67cd0d

Browse files
CIQ Kernel Automationbmastbergen
authored andcommitted
wifi: brcmfmac: validate bsscfg indices in IF events
jira VULN-185622 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 5776c0e commit b67cd0d

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
@@ -152,6 +152,11 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr,
152152
bphy_err(drvr, "invalid interface index: %u\n", ifevent->ifidx);
153153
return;
154154
}
155+
if (ifevent->bsscfgidx >= BRCMF_MAX_IFS) {
156+
bphy_err(drvr, "invalid bsscfg index: %u\n",
157+
ifevent->bsscfgidx);
158+
return;
159+
}
155160

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

0 commit comments

Comments
 (0)