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

Jiale Yao yaojiale02 at 163.com
Tue Oct 27 22:07:19 PDT 2026


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(-)

-- 
2.34.1




More information about the Linux-mediatek mailing list