Skip to content

wifi: mwifiex: fix UAF and ext scan TLV bounds checks

Elkin Cruz linux-wireless lkml llvm stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3wifi: mwifiex: fix UAF after skb_realloc_headroom() in bridged RXdrivers/net/wireless/marvell/mwifiex/uap_txrx.c+9 -40 replies
2/3wifi: mwifiex: check TLV header size in ext scan reportdrivers/net/wireless/marvell/mwifiex/scan.c+2 -10 replies
3/3wifi: mwifiex: validate ext scan event envelope and TLV lengthsdrivers/net/wireless/marvell/mwifiex/scan.c+18 -90 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/3] wifi: mwifiex: fix UAF and ext scan TLV bounds checks

I am trying out new Clang static analysis checks for kernel bug classes, and they flagged this code as possibly buggy. The findings were triaged/fixed and commit descriptions were drafted with help of AI, then checked against linux-next (not runtime-tested on hardware).

Thanks,
Elkin

Elkin Cruz (3):
wifi: mwifiex: fix UAF after skb_realloc_headroom() in bridged RX
wifi: mwifiex: check TLV header size in ext scan report
wifi: mwifiex: validate ext scan event envelope and TLV lengths

 drivers/net/wireless/marvell/mwifiex/scan.c   | 30 ++++++++++++-------
 .../net/wireless/marvell/mwifiex/uap_txrx.c   | 13 +++++---
 2 files changed, 29 insertions(+), 14 deletions(-)
Signature · 1 line
2.56.1.839.g22a8290db9-goog