CVE-2026-139500: wifi: mt76: mt7996: validate firmware event lengths before parsing
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: validate firmware event lengths before parsing
Two unsolicited event handlers trusted firmware-provided lengths: mt7996mcurxallstainfoevent() looped over res->stanum without checking it against skb->len, reading the flex array out of bounds; and mt7996mcurxlogmessage() could compute a negative or oversized length from tlv->len and feed it to %.s and the debugfs log path. Bound both against the actual skb length.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Validate firmware-provided event lengths against the actual skb length before parsing: bound the mt7996 station-info loop by the available data, and reject invalid TLV log-message lengths before passing them to %.*s or the debugfs log path.
Event History
Frequently Asked Questions
Which Linux systems are affected?
Systems using the mt7996 Wi-Fi driver are the relevant population. The issue is in that driver's handling of unsolicited firmware events, rather than in general Linux kernel networking code.
What condition is required to trigger the vulnerable parsing?
The driver must receive malformed firmware event data with length or count fields that do not match the actual skb length. One affected path uses an unchecked station count, while another derives a log-message length from an unchecked TLV length.