CVE-2023-53466: wifi: mt76: mt7915: fix memory leak in mt7915_mcu_exit
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: fix memory leak in mt7915_mcu_exit
Always purge mcu skb queues in mt7915_mcu_exit routine even if mt7915_firmware_state fails.
The Linux kernel CVE team has assigned CVE-2023-53466 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.8 with commit e57b7901469fc0b021930b83a8094baaf3d81b09 and fixed in 6.1.16 with commit 4cbb876153b63fe248200f734069c6881cf97722 Issue introduced in 5.8 with commit e57b7901469fc0b021930b83a8094baaf3d81b09 and fixed in 6.2.3 with commit 3095fe1e1d3198e62a3c7116c4cf7c734871475f Issue introduced in 5.8 with commit e57b7901469fc0b021930b83a8094baaf3d81b09 and fixed in 6.3 with commit 49bd78282e79ad177d14f37f4049f0605bf92dad
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-53466
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/mt7915/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/4cbb876153b63fe248200f734069c6881cf97722 https://git.kernel.org/stable/c/3095fe1e1d3198e62a3c7116c4cf7c734871475f https://git.kernel.org/stable/c/49bd78282e79ad177d14f37f4049f0605bf92dad