Skip to content

wifi: iwlwifi: validate more indices from the firmware

Maoyi Xie linux-wireless 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: iwlwifi: mvm: validate TID in TX response handlersdrivers/net/wireless/intel/iwlwifi/mvm/tx.c+7 -10 replies
2/4wifi: iwlwifi: mvm: validate BAID in the RX pathdrivers/net/wireless/intel/iwlwifi/mvm/rxmq.c+8 -00 replies
3/4wifi: iwlwifi: mld: validate BAID in the RX timestamp updatedrivers/net/wireless/intel/iwlwifi/mld/rx.c+4 -00 replies
4/4wifi: iwlwifi: pcie: validate txq_id in reclaimdrivers/net/wireless/intel/iwlwifi/pcie/tx.c+8 -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 iwlwifi-next 0/4] wifi: iwlwifi: validate more indices from the firmware

These patches add range checks for a TID, a BAID and a TX queue number that the firmware reports. Other code paths already have these checks. The patches are independent.

The missing checks were found with a CodeQL-based static analysis tool that we are developing. Each out-of-range access was reproduced in a userspace harness under sanitizers, which report nothing with the patches. Nothing was tested on hardware. The patches were compile-tested with W=1 on next-20261116.

I used an LLM to help write the harnesses and these patches.

Maoyi Xie (4):
wifi: iwlwifi: mvm: validate TID in TX response handlers
wifi: iwlwifi: mvm: validate BAID in the RX path
wifi: iwlwifi: mld: validate BAID in the RX timestamp update
wifi: iwlwifi: pcie: validate txq_id in reclaim

 drivers/net/wireless/intel/iwlwifi/mld/rx.c   | 4 ++++
 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 8 ++++++++
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c   | 8 +++++++-
 drivers/net/wireless/intel/iwlwifi/pcie/tx.c  | 9 ++++++++-
 4 files changed, 27 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1