mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 wireless 0/2] wifi: nxpwifi: firmware response validation fixes
@ 2026-11-20 22:59 Tristan Madani
  2026-11-20 22:59 ` [PATCH v2 wireless 1/2] wifi: nxpwifi: validate ext_scan buf_size against event buffer length Tristan Madani
  2026-11-20 22:59 ` [PATCH v2 wireless 2/2] wifi: nxpwifi: validate command response size against " Tristan Madani
  0 siblings, 2 replies; 3+ messages in thread
From: Tristan Madani @ 2026-11-20 22:59 UTC (permalink / raw)
  To: Jeff Chen
  Cc: Francesco Dolcini, linux-wireless, linux-kernel, stable, Tristan Madani

The nxpwifi driver trusts several size fields from firmware responses
without validating them against actual buffer lengths. This series
adds bounds checks to prevent reads past the buffer when firmware
provides inflated sizes.

Changes in v2:
- Dropped the HE capability TLV length patch (was 1/3), superseded by
  commit f17e2eda1630a ("wifi: nxpwifi: bound the TLV lengths in the
  11AX_CFG response")
- Patch 2/2: moved the response size check after timer_delete_sync()
  so the command timer is properly cancelled before the early return,
  as pointed out by Jeff Chen

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

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

-- 
2.47.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-20 22:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 22:59 [PATCH v2 wireless 0/2] wifi: nxpwifi: firmware response validation fixes Tristan Madani
2026-11-20 22:59 ` [PATCH v2 wireless 1/2] wifi: nxpwifi: validate ext_scan buf_size against event buffer length Tristan Madani
2026-11-20 22:59 ` [PATCH v2 wireless 2/2] wifi: nxpwifi: validate command response size against " Tristan Madani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®