Skip to content

wifi: brcmfmac: fwsignal: bound indices from firmware signals

Maoyi Xie brcm80211 linux-wireless lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: brcmfmac: fwsignal: bound the AMPDU reorder indicesdrivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c+23 -30 replies
2/2wifi: brcmfmac: fwsignal: bound the MACDESC_ADD interface indexdrivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH wireless 0/2] wifi: brcmfmac: fwsignal: bound indices from firmware signals

These patches add bounds checks for indices that the device sends in the BCDC firmware signals. Patch 1 covers the AMPDU reorder indices. Patch 2 covers the interface index of MACDESC_ADD. On USB, brcmfmac parses these signals with the default module parameters.

Both bugs were found with a static analysis tool that we develop. A userspace harness that compiles the fwsignal.c functions unchanged reproduces them under sanitizers. No hardware was available for testing.

Maoyi Xie (2):
wifi: brcmfmac: fwsignal: bound the AMPDU reorder indices
wifi: brcmfmac: fwsignal: bound the MACDESC_ADD interface index

 .../broadcom/brcm80211/brcmfmac/core.h        |  2 ++
 .../broadcom/brcm80211/brcmfmac/fwsignal.c    | 26 ++++++++++++++++---
 2 files changed, 24 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1