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 24A931F8733 for ; Tue, 19 Aug 2025 17:21:55 +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=1755624116; cv=none; b=j1xMmjofCoCo3vyUBaCSdqtMVGeJZSDbx1qeqEJdgFAk95kFe9xm4o+8PQ++GgAP3E/NO2LkkZ6WKzpP6M0iRFzuAeQZIYTI4zmknm1ccj2vNG4erC+3woz7jerMXAAYgQ+RTt5hjR/bjJkLGY9hgauWWJ8+yQ5af4gVMemdf18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624116; c=relaxed/simple; bh=U9sWeHqYB9znv8gcFPcT63tLfBkuXmsGlMZSAvgWe/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cINQfhSMiYoHAAyGXj6oxFmqW3WhhfpwYBtYsRtGFsKvQD6wCUnAtlyeCFitwnu0aVbuPt0z8sF9c8z9NZyC0yGZFRLrl5bPp6oUNdsW9HdWT0H/U+8UtKarqWNfBegGiFAb0I6jQLdo1L9u1XH42eBuARf23QuyOvPeOZN+45w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zYvuFjKa; 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="zYvuFjKa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D8FFC4CEF4; Tue, 19 Aug 2025 17:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624115; bh=U9sWeHqYB9znv8gcFPcT63tLfBkuXmsGlMZSAvgWe/w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zYvuFjKaS4MpYJjzIk7WOkwrmmkUE92T6HHGfMxVAjurA2FKoEeMIAKTSWWkOaOny aTJiKy9rDEXx7z3fPd2RF1/JuWBOw8PBOHSHQu5qJeIzCiBuncWHzaV9gVd/c/w+n7 n+lYCwZPRnlt3KjkmSoAZIImb+AWmoUAgboZj9y4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38605: wifi: ath12k: Pass ab pointer directly to ath12k_dp_tx_get_encap_type() Date: Tue, 19 Aug 2025 19:18:51 +0200 Message-ID: <2025081922-CVE-2025-38605-32f2@gregkh> X-Mailer: git-send-email 2.50.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=3047; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zbp+VqvP+38dF3L6kfgVf479QHePwzPQFZbgU+HiVzQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNt6TlEiXzFh8JWdelcUbtju7+pT9J9Z9fy0vslHsi vrmOr6YjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIXT/Dgm3iPXtm3Fl86Jbj akY5m6Lz9q0TJRkW7BVbbsTQVND0O+bz0wvHbaWMTnmYAgA= 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: ath12k: Pass ab pointer directly to ath12k_dp_tx_get_encap_type() In ath12k_dp_tx_get_encap_type(), the arvif parameter is only used to retrieve the ab pointer. In vdev delete sequence the arvif->ar could become NULL and that would trigger kernel panic. Since the caller ath12k_dp_tx() already has a valid ab pointer, pass it directly to avoid panic and unnecessary dereferencing. PC points to "ath12k_dp_tx+0x228/0x988 [ath12k]" LR points to "ath12k_dp_tx+0xc8/0x988 [ath12k]". The Backtrace obtained is as follows: ath12k_dp_tx+0x228/0x988 [ath12k] ath12k_mac_tx_check_max_limit+0x608/0x920 [ath12k] ieee80211_process_measurement_req+0x320/0x348 [mac80211] ieee80211_tx_dequeue+0x9ac/0x1518 [mac80211] ieee80211_tx_dequeue+0xb14/0x1518 [mac80211] ieee80211_tx_prepare_skb+0x224/0x254 [mac80211] ieee80211_xmit+0xec/0x100 [mac80211] __ieee80211_subif_start_xmit+0xc50/0xf40 [mac80211] ieee80211_subif_start_xmit+0x2e8/0x308 [mac80211] netdev_start_xmit+0x150/0x18c dev_hard_start_xmit+0x74/0xc0 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2025-38605 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit e93bbd65547ea8073b707c9034c3f051f8018614 and fixed in 6.15.10 with commit b508f370f88f277c95e2bd3bc47217a96d668cee Issue introduced in 6.4 with commit e93bbd65547ea8073b707c9034c3f051f8018614 and fixed in 6.16.1 with commit ee4f8e7fa578f9f28cef5f409677db25f4f83d7e Issue introduced in 6.4 with commit e93bbd65547ea8073b707c9034c3f051f8018614 and fixed in 6.17-rc1 with commit 05062834350f0bf7ad1abcebc2807220e90220eb 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-38605 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/dp_tx.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/b508f370f88f277c95e2bd3bc47217a96d668cee https://git.kernel.org/stable/c/ee4f8e7fa578f9f28cef5f409677db25f4f83d7e https://git.kernel.org/stable/c/05062834350f0bf7ad1abcebc2807220e90220eb