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 D9D32148857 for ; Thu, 27 Feb 2025 02:08:38 +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=1740622118; cv=none; b=gKuvHxq+AjcDcKSl5C/sUjQeAVYnbRwuPSYI7It/SDq+H2BHjAlp9dqgvUz1rd9BqxmislNdWt7dA4nz1Jz42FqfIHYWPD0VAHFTEOet/wuGKXWZIkGLpYA/byYtUjRYLXnAkzy5SH8eUnuH0nnvYVWQM/nGdTdnmkN4PrhmTEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622118; c=relaxed/simple; bh=zWcoyczkFP2jAsnl29jmFIdgzG0LB9Dtu6IgMfBmipo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fe7D34VlyUj7w04FN2TPEk2H3SMGgZ97jDHiI0GmB7u6Jcswd43rPl6CwfShy3QYpof6boOV1qEETu1usIY0zEDpiMgizz168BdEyotLnz8vtE+wIYFQh817s3Ma8X/ajm9blfkPHFNl8POiWaXbPu3H+9cooR3/BRuovt51+hk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b/BZnjkD; 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="b/BZnjkD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB022C4CEE8; Thu, 27 Feb 2025 02:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622118; bh=zWcoyczkFP2jAsnl29jmFIdgzG0LB9Dtu6IgMfBmipo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b/BZnjkDE6h8pG0fTvU30zJmlad1gU5P/xj7iIecFZZa+L4x33Ox/CmsTx75QuTgl x8lBoZh1r08fbX952RxrZJ2blDDK0QSxzgcVFDXjNQsiRvuvEfN1i9jNZ8Ty1akcaC z6l0awssJM5o+FZCXcJXW2yCD1kUW5mH5LTjDl/o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57991: wifi: rtw89: chan: fix soft lockup in rtw89_entity_recalc_mgnt_roles() Date: Wed, 26 Feb 2025 18:05:50 -0800 Message-ID: <2025022638-CVE-2024-57991-a3e1@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=2661; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zWcoyczkFP2jAsnl29jmFIdgzG0LB9Dtu6IgMfBmipo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7TxSpym5oMtM4lZ593nhnNdtWgfNZcxyVoiVUeVI4m H4bSEzviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm83MawoCNz4zzOCw+1jrmd 8N5/tzbiK1PPE4b5aVdi9R+kTeB6NyPWiOGT8hnpoE+iAA== 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: wifi: rtw89: chan: fix soft lockup in rtw89_entity_recalc_mgnt_roles() During rtw89_entity_recalc_mgnt_roles(), there is a normalizing process which will re-order the list if an entry with target pattern is found. And once one is found, should have aborted the list_for_each_entry. But, `break` just aborted the inner for-loop. The outer list_for_each_entry still continues. Normally, only the first entry will match the target pattern, and the re-ordering will change nothing, so there won't be soft lockup. However, in some special cases, soft lockup would happen. Fix it by `goto fill` to break from the list_for_each_entry. The following is a sample of kernel log for this problem. watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [wpa_supplicant:2055] [...] RIP: 0010:rtw89_entity_recalc ([...] chan.c:392 chan.c:479) rtw89_core [...] The Linux kernel CVE team has assigned CVE-2024-57991 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 68ec751b288178de7d19b71ea61648269a35b8cd and fixed in 6.13.2 with commit 01d2d34e9fcc9897081c3c16a666f793c8a38c58 Issue introduced in 6.13 with commit 68ec751b288178de7d19b71ea61648269a35b8cd and fixed in 6.14-rc1 with commit e4790b3e314a4814f1680a5dc552031fb199b878 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-2024-57991 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/chan.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/223ba95fdcd3c6090e2bd51dce66abb6dd4f9df9 https://git.kernel.org/stable/c/01d2d34e9fcc9897081c3c16a666f793c8a38c58 https://git.kernel.org/stable/c/e4790b3e314a4814f1680a5dc552031fb199b878