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 5E8B9145FE4 for ; Sat, 17 Aug 2024 09:23:36 +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=1723886616; cv=none; b=mOEF74VL4fYXG/CkTbYCbIYG910Oij77KMZN6rQ5tzBbP6A+IiHnsVkVH6m9DhjdcaajbsSFbtn7JbFEmJ8om/9MS7Hos52cnIt2zpOFsn8pCmGyA0gX/MdkR+bgFPARcmUqGONUeLPeqa9qQ+Zvnekud04oOhRF402yD9xFXxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886616; c=relaxed/simple; bh=9EGt7zbm13X7CYmirPqYNlgGOpSmL/IUTK/+x2W6cs4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SryMAfpp+teJKOjhZCX/Cd3DWcVoIIR9foi5hY2fk3/H6Ri89wxTVn/qA69CilzR2z5X3bNAx5LCU7kDjwSiaat5k4UU0jzMk2KSknwTBDFQx2qFb0DPKgWof0Dt8G0VvYgAecNJ6hG0ypSReRCGdg/rzulPVnoybXmHfGKmvgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z3an8Hu2; 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="Z3an8Hu2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD19BC116B1; Sat, 17 Aug 2024 09:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886616; bh=9EGt7zbm13X7CYmirPqYNlgGOpSmL/IUTK/+x2W6cs4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z3an8Hu2zUJtQVZCZALphrc5+4eFq0GFc9XoMKzi1JLgx+ZfQgB83zBQK0KgtvBgY WJMz4Rann32nhrXGLpZtY7A1UNcZft896FMvFIhP5iiNq4yEP0+RkNPOqK6XqAsyeX NPVJgKMDFeQp6+lzB+TcISmW5Mc67jPNi5ZtLBT0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43842: wifi: rtw89: Fix array index mistake in rtw89_sta_info_get_iter() Date: Sat, 17 Aug 2024 11:22:46 +0200 Message-ID: <2024081730-CVE-2024-43842-31e7@gregkh> X-Mailer: git-send-email 2.46.0 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=2480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9EGt7zbm13X7CYmirPqYNlgGOpSmL/IUTK/+x2W6cs4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsq/pNx+tKHbe1Cv23+PXFx1/1TjuqdvPrIvLFeE89 aNUM0+mI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCJcew4PL/vRtnOEyLObop 4cednXbpB5I3ZzEsuLjHYs6lNXw2ajmae4+/6LdoetpyBwA= 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: Fix array index mistake in rtw89_sta_info_get_iter() In rtw89_sta_info_get_iter() 'status->he_gi' is compared to array size. But then 'rate->he_gi' is used as array index instead of 'status->he_gi'. This can lead to go beyond array boundaries in case of 'rate->he_gi' is not equal to 'status->he_gi' and is bigger than array size. Looks like "copy-paste" mistake. Fix this mistake by replacing 'rate->he_gi' with 'status->he_gi'. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-43842 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e3ec7017f6a2 and fixed in 6.1.103 with commit a2a095c08b95 Issue introduced in 5.16 with commit e3ec7017f6a2 and fixed in 6.6.44 with commit 7a0edc3d83af Issue introduced in 5.16 with commit e3ec7017f6a2 and fixed in 6.10.3 with commit 96ae4de5bc4c Issue introduced in 5.16 with commit e3ec7017f6a2 and fixed in 6.11-rc1 with commit 85099c7ce4f9 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-43842 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/debug.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/a2a095c08b95372d6d0c5819b77f071af5e75366 https://git.kernel.org/stable/c/7a0edc3d83aff3a48813d78c9cad9daf38decc74 https://git.kernel.org/stable/c/96ae4de5bc4c8ba39fd072369398f59495b73f58 https://git.kernel.org/stable/c/85099c7ce4f9e64c66aa397cd9a37473637ab891