CVE-2023-54052: wifi: mt76: mt7921: fix skb leak by txs missing in AMSDU
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7921: fix skb leak by txs missing in AMSDU
txs may be dropped if the frame is aggregated in AMSDU. When the problem shows up, some SKBs would be hold in driver to cause network stopped temporarily. Even if the problem can be recovered by txs timeout handling, mt7921 still need to disable txs in AMSDU to avoid this issue.
The Linux kernel CVE team has assigned CVE-2023-54052 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 and fixed in 6.1.52 with commit 1cd102aaedb277fbe81dd08cd9f5cae951de2bff Issue introduced in 5.12 with commit 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 and fixed in 6.4.15 with commit e74778e91fedc3b2a0143264887bbb32508c5000 Issue introduced in 5.12 with commit 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 and fixed in 6.5.2 with commit bf5d3fad7219b8de7d3a9cb59f0ea5243b018f07 Issue introduced in 5.12 with commit 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 and fixed in 6.6 with commit b642f4c5f3de0a8f47808d32b1ebd9c427a42a66
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-2023-54052
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_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/1cd102aaedb277fbe81dd08cd9f5cae951de2bff https://git.kernel.org/stable/c/e74778e91fedc3b2a0143264887bbb32508c5000 https://git.kernel.org/stable/c/bf5d3fad7219b8de7d3a9cb59f0ea5243b018f07 https://git.kernel.org/stable/c/b642f4c5f3de0a8f47808d32b1ebd9c427a42a66