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 CCF2B1F37BD for ; Fri, 27 Dec 2024 14:11:49 +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=1735308709; cv=none; b=frYrcFSUGo2Cx+pzjhGw02VexhOgaqIIn5tIX4lMZ+GljluENjA03UqJ4d91yMIPS2mvF53pwgo7R0F4ZveCns301HvYK9+fj51SGOwIR2c/6MXX24I6fa7holOrGpZK1SyNdtbwYCAendeLfRRMbahEjUEWlx3zqtKgN4QPa9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735308709; c=relaxed/simple; bh=hEnrnNF4QhuqEnstr+jHM6EaWYfJqrLpQYBNUNxZ6jk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ElNdxA1k1VSmNhdqRZXVtSKDG005YxHzgKlIkuDbjEokJEtjB7qYgRSkC8cbnptmbx5UQB7d/LpHOBWscSXMlnLpHi2XmZKjX+vB3wRedXKA1mST6C78lTLiATdu2SPGIXz90Aq1Tb0gNuIsNr725SpCPCjuHhTnF9Wo9VdZKAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XlL2YoxF; 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="XlL2YoxF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7AF7C4CED0; Fri, 27 Dec 2024 14:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735308709; bh=hEnrnNF4QhuqEnstr+jHM6EaWYfJqrLpQYBNUNxZ6jk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XlL2YoxF7ki2gTMX8wKuKpWRkeZME7JBdC+yyvRUWhj+9KgBThs7SnK1xadlyZ7OQ oH8TWePwPA+UIBnRWMoL1qXZoYjwRS8hwlDDQY6O7hROoXOvFwfetMd5SpkBUv819+ GOAEgsxjjsyxxIza6PKQy3Hmrj7MPBbVQccb96dY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56543: wifi: ath12k: Skip Rx TID cleanup for self peer Date: Fri, 27 Dec 2024 15:11:34 +0100 Message-ID: <2024122727-CVE-2024-56543-a959@gregkh> X-Mailer: git-send-email 2.47.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=3338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hEnrnNF4QhuqEnstr+jHM6EaWYfJqrLpQYBNUNxZ6jk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5WycsO7/y6+bdkQofVNad7pOIW+N05ZTnjZMPfJRlf HvK5z6X6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPCtnmGfUYSLZOuHIT8Pp HTKLJ/rODlS4HcQwP3L6fAezGe9ClB4XPnjU/Ff5nlz2TAA= 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: ath12k: Skip Rx TID cleanup for self peer During peer create, dp setup for the peer is done where Rx TID is updated for all the TIDs. Peer object for self peer will not go through dp setup. When core halts, dp cleanup is done for all the peers. While cleanup, rx_tid::ab is accessed which causes below stack trace for self peer. WARNING: CPU: 6 PID: 12297 at drivers/net/wireless/ath/ath12k/dp_rx.c:851 Call Trace: __warn+0x7b/0x1a0 ath12k_dp_rx_frags_cleanup+0xd2/0xe0 [ath12k] report_bug+0x10b/0x200 handle_bug+0x3f/0x70 exc_invalid_op+0x13/0x60 asm_exc_invalid_op+0x16/0x20 ath12k_dp_rx_frags_cleanup+0xd2/0xe0 [ath12k] ath12k_dp_rx_frags_cleanup+0xca/0xe0 [ath12k] ath12k_dp_rx_peer_tid_cleanup+0x39/0xa0 [ath12k] ath12k_mac_peer_cleanup_all+0x61/0x100 [ath12k] ath12k_core_halt+0x3b/0x100 [ath12k] ath12k_core_reset+0x494/0x4c0 [ath12k] sta object in peer will be updated when remote peer is created. Hence use peer::sta to detect the self peer and skip the cleanup. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 The Linux kernel CVE team has assigned CVE-2024-56543 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.6.64 with commit d73da0dd2853887b7aab71f0d572fd3314dafafe Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.11.11 with commit a1e2d6738b29c74c2024eb23167dfff68aadd984 Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.12.2 with commit a052483d495a4dc62c814f2fd17d0ceb308fc6a6 Issue introduced in 6.3 with commit d889913205cf7ebda905b1e62c5867ed4e39f6c2 and fixed in 6.13-rc1 with commit 1a0c640ce1cdcde3eb131a0c1e70ca1ed7cf27cb 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-56543 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/ath/ath12k/mac.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/d73da0dd2853887b7aab71f0d572fd3314dafafe https://git.kernel.org/stable/c/a1e2d6738b29c74c2024eb23167dfff68aadd984 https://git.kernel.org/stable/c/a052483d495a4dc62c814f2fd17d0ceb308fc6a6 https://git.kernel.org/stable/c/1a0c640ce1cdcde3eb131a0c1e70ca1ed7cf27cb