[PATCH wireless 0/2] wifi: mwifiex: validate firmware response sizes

From: Tristan Madani

Date: Mon Nov 02 2026 - 09:40:37 EST


Two missing bounds checks on firmware-provided size fields in mwifiex:

1. ext_scan event: buf_size is used to determine scan response
parsing length but never checked against the event buffer.

2. command response: resp->size is passed to individual handlers
but never validated against the response skb length.

Both patches add early validation that the declared size fits within
the actual buffer before proceeding with parsing.

Tristan Madani (2):
wifi: mwifiex: validate ext_scan buf_size against event buffer length
wifi: mwifiex: validate command response size against buffer length

drivers/net/wireless/marvell/mwifiex/cmdevt.c | 14 ++++++++++++++
drivers/net/wireless/marvell/mwifiex/scan.c | 9 +++++++++
2 files changed, 23 insertions(+)

--
2.47.3