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 2E2722D29AB for ; Thu, 3 Jul 2025 08:38:25 +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=1751531905; cv=none; b=F6T54W+0seWZwbpPOQ8zbvn7r10BzFJP72rfFT/tEAam/hEE7lVXTT1dGVCoX/qPQTPlITJsf1DYVBNIXOG4oPl0KCszwtA74otLzhDob7wanb+SG1NNNqt78WHA3UI9lv7AiSYZ/Ut5CjLhlY/UvKo4fnfP4rWMaFvmBwR0kEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531905; c=relaxed/simple; bh=JMeulXEM3PWXX6B3JMUSa1pNccIFprPX+assyLNR1LE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lheXdFwYDRKX1/S5kLUO/kxqBhE9+7bpkv8hwJI4INVgW0kc6K9qb4Xk3N36p9quoUixYKWtrJtBP4aJXyTSEb0VPQeubNtnn0K53UHik5yhzf13os+zwwiUiOrDDakIE1swDfQXZ6/jUSOTGD+FSP1EbL41WSbaoBANhnyF6hI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kxTV2hWB; 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="kxTV2hWB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78316C4CEE3; Thu, 3 Jul 2025 08:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531905; bh=JMeulXEM3PWXX6B3JMUSa1pNccIFprPX+assyLNR1LE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kxTV2hWBItm13D9kbEXRGLi7rVfHbvYHxchfXGncwoMtk2QA9qUcUVpnWM2KaYXM8 6UnyTxZszebGc5DhvhRdv7waFnhaftnQcmuz6krCH4eJVRnhSwnDvUhTXtByShdBL5 dWl3fl6sb+91mVJB95b/T+n44IJF+4kPR3kCSceQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38159: wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds Date: Thu, 3 Jul 2025 10:36:15 +0200 Message-ID: <2025070339-CVE-2025-38159-0c95@gregkh> X-Mailer: git-send-email 2.50.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=3154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/MY4jRPhDEZDVqlyKsi3zDlgBpC3Yjg+Brxw1+yNGzk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDrc/7hBxOKcuevTMmv0iW3VP/bsnzM1z5uMPpxdT2 G+9/qQl2hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATYY9nWDDv+X5X7lnearOZ siZ8ufLu/rqdDz4xzFM7uCDQ8iUr16+brNW6Z1rVnfb82gUA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds Set the size to 6 instead of 2, since 'para' array is passed to 'rtw_fw_bt_wifi_control(rtwdev, para[0], ¶[1])', which reads 5 bytes: void rtw_fw_bt_wifi_control(struct rtw_dev *rtwdev, u8 op_code, u8 *data) { ... SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); ... SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4)); Detected using the static analysis tool - Svace. The Linux kernel CVE team has assigned CVE-2025-38159 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 5.15.186 with commit 1ee8ea6937d13b20f90ff35d71ccc03ba448182d Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 6.1.142 with commit 68a1037f0bac4de9a585aa9c879ef886109f3647 Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 6.6.94 with commit 74e18211c2c89ab66c9546baa7408288db61aa0d Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 6.12.34 with commit c13255389499275bc5489a0b5b7940ccea3aef04 Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 6.15.3 with commit 9febcc8bded8be0d7efd8237fcef599b6d93b788 Issue introduced in 5.4 with commit 4136214f7c46839c15f0f177fe1d5052302c0205 and fixed in 6.16-rc1 with commit 4c2c372de2e108319236203cce6de44d70ae15cd 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-2025-38159 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/rtw88/coex.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/1ee8ea6937d13b20f90ff35d71ccc03ba448182d https://git.kernel.org/stable/c/68a1037f0bac4de9a585aa9c879ef886109f3647 https://git.kernel.org/stable/c/74e18211c2c89ab66c9546baa7408288db61aa0d https://git.kernel.org/stable/c/c13255389499275bc5489a0b5b7940ccea3aef04 https://git.kernel.org/stable/c/9febcc8bded8be0d7efd8237fcef599b6d93b788 https://git.kernel.org/stable/c/4c2c372de2e108319236203cce6de44d70ae15cd