From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FE07219A97 for ; Wed, 26 Feb 2025 02:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536133; cv=none; b=WZSFkWJ6TUJbQZngnM2wVnUK/DNRW6yM8LFnH0b8Pp/6He9QWhCrn+PF4rleLGp8QuTTcCSc80xMcA0dorKxBU0ujZOg8Ywf4+H4zXmEUmYFw5u3N8vt1ZS9iEZ6BooR0w/FkICvKw1+GFwL+MGP5FlWSxwCqkY3ukTkbF1s7rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536133; c=relaxed/simple; bh=x6t5K0OD41g8a4MH53L6WWZ6Q8FkJb7qPNquYT2dfyk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U24R6JifT/6PhR8R48yM1/h/dVrXwVxg4ngBGn+RlpL395goabDyJevwCjV6Q7BcbCjj+k3lHdfCvLwePhqj0eDeQpiBPW99yWkmDqoo9FgdZPhCcQF6nC4xQvExUPor0pkx2FkxXJkJZrKJmpV6ot90slA+vojFuSUhSzPg6ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hbTV2KVN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hbTV2KVN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D707C4CEE7; Wed, 26 Feb 2025 02:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536133; bh=x6t5K0OD41g8a4MH53L6WWZ6Q8FkJb7qPNquYT2dfyk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hbTV2KVNq/OipsCEwpUoXPfSTOJgqMPTLlNUDkr9DrSUGAJ0HLeUlY+T7iBLsWm6R DO2ayVM8nUfGBVU3nANNPzIqhnPfJj0bDSH63joqZphM3/oeTIR5vG9Hi9m+wYtDlH gO9hryZci8azgEpbASM2Xh7rgoEZ57BcSpD6Eikg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49539: rtw89: ser: fix CAM leaks occurring in L2 reset Date: Wed, 26 Feb 2025 03:13:33 +0100 Message-ID: <2025022614-CVE-2022-49539-9ea2@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2529; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x6t5K0OD41g8a4MH53L6WWZ6Q8FkJb7qPNquYT2dfyk=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+eAbI1po52YRTAg4f/ekMMLmKUafS1NMem33kliLmA8s31 ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+eAYACgkQMUfUDdst+yn1kACglOdL aRvwEMYOaRrVNKyKUi45vbkAoMRSt+QGEUQoWptSEMucaUdvKQz7 X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: rtw89: ser: fix CAM leaks occurring in L2 reset The CAM, meaning address CAM and bssid CAM here, will get leaks during SER (system error recover) L2 reset process and ieee80211_restart_hw() which is called by L2 reset process eventually. The normal flow would be like -> add interface (acquire 1) -> enter ips (release 1) -> leave ips (acquire 1) -> connection (occupy 1) <(A) 1 leak after L2 reset if non-sec connection> The ieee80211_restart_hw() flow (under connection) -> ieee80211 reconfig -> add interface (acquire 1) -> leave ips (acquire 1) -> connection (occupy (A) + 2) <(B) 1 more leak> Originally, CAM is released before HW restart only if connection is under security. Now, release CAM whatever connection it is to fix leak in (A). OTOH, check if CAM is already valid to avoid acquiring multiple times to fix (B). Besides, if AP mode, release address CAM of all stations before HW restart. The Linux kernel CVE team has assigned CVE-2022-49539 to this issue. Affected and fixed versions =========================== Fixed in 5.18.3 with commit f6aff772c9978844529618d86aafb53e5d3ae161 Fixed in 5.19 with commit b169f877f001a474fb89939842c390518160bcc5 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-2022-49539 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/realtek/rtw89/cam.c drivers/net/wireless/realtek/rtw89/ser.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/f6aff772c9978844529618d86aafb53e5d3ae161 https://git.kernel.org/stable/c/b169f877f001a474fb89939842c390518160bcc5