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

From: Jiale Yao

Date: Wed Oct 28 2026 - 01:10:05 EST


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