Skip to content

wifi: mt76: validate mt792x firmware TLV payloads

Jiale Yao linux-arm-kernel linux-mediatek linux-wireless lkml 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: mt76: mt7921: validate NIC capability payload lengthsdrivers/net/wireless/mediatek/mt76/mt7921/mcu.c+33 -80 replies
2/3wifi: mt76: mt7925: validate debug message lengthsdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+22 -20 replies
3/3wifi: mt76: mt7925: validate NIC capability payload lengthsdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+35 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] wifi: mt76: validate mt792x firmware TLV payloads

The mt7921 and mt7925 firmware event parsers validate some outer skb lengths, but several paths still trust type-specific lengths before reading fixed fields. Malformed responses can make the drivers read past a TLV payload, and a zero-length mt7925 capability TLV can stop progress through the response.

Validate the fixed and type-specific payload extents before consuming NIC capability and debug message data. Each patch covers one independent parser and can be applied separately.

Jiale Yao (3):
wifi: mt76: mt7921: validate NIC capability payload lengths
wifi: mt76: mt7925: validate debug message lengths
wifi: mt76: mt7925: validate NIC capability payload lengths

 .../net/wireless/mediatek/mt76/mt7921/mcu.c   | 41 +++++++++---
 .../net/wireless/mediatek/mt76/mt7925/mcu.c   | 67 ++++++++++++++++---
 2 files changed, 90 insertions(+), 18 deletions(-)
Signature · 1 line
2.34.1