CVE-2026-53102: wifi: mt76: Fix memory leak after mt76_connac_mcu_alloc_sta_req()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: Fix memory leak after mt76_connac_mcu_alloc_sta_req()
mt76_connac_mcu_alloc_sta_req() allocates an skb which is expected to be freed eventually by mt76_mcu_skb_send_msg(). However, currently if an intermediate function fails before sending, the allocated skb is leaked.
Specifically, mt76_connac_mcu_sta_wed_update() and mt76_connac_mcu_sta_key_tlv() may fail, leading to an immediate memory leak in the error path.
Fix this by explicitly freeing the skb in these error paths. Commit 7c0f63fe37a5 ("wifi: mt76: mt7996: fix memory leak on mt7996_mcu_sta_key_tlv error") made a similar change.
Compile tested only. Issue found using a prototype static analysis tool and code review.
The Linux kernel CVE team has assigned CVE-2026-53102 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.18 with commit 6683d988089ce0e80bd859a9493333b6b272420e and fixed in 7.0.10 with commit eb466406d2094deefadc2cd6ddb4f6eeb086d1b4 Issue introduced in 5.18 with commit 6683d988089ce0e80bd859a9493333b6b272420e and fixed in 7.1 with commit c41075ce8cf05ed8c0e7b7efef000dce548ffc42
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53102
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c drivers/net/wireless/mediatek/mt76/mt7915/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/eb466406d2094deefadc2cd6ddb4f6eeb086d1b4 https://git.kernel.org/stable/c/c41075ce8cf05ed8c0e7b7efef000dce548ffc42