CVE-2025-39862: wifi: mt76: mt7915: fix list corruption after hardware restart
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: fix list corruption after hardware restart
Since stations are recreated from scratch, all lists that wcids are added to must be cleared before calling ieee80211_restart_hw.
Set wcid->sta = 0 for each wcid entry in order to ensure that they are not added again before they are ready.
The Linux kernel CVE team has assigned CVE-2025-39862 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 8a55712d124fd8a919e8a69b70643e1a97280b4b and fixed in 6.16.6 with commit 8fa8eb52bc2eb08d93202863b5fc478e0bebc00c Issue introduced in 6.2 with commit 8a55712d124fd8a919e8a69b70643e1a97280b4b and fixed in 6.17-rc5 with commit 065c79df595af21d6d1b27d642860faa1d938774
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-2025-39862
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/mac80211.c drivers/net/wireless/mediatek/mt76/mt76.h drivers/net/wireless/mediatek/mt76/mt7915/mac.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/8fa8eb52bc2eb08d93202863b5fc478e0bebc00c https://git.kernel.org/stable/c/065c79df595af21d6d1b27d642860faa1d938774