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 6ACF22192EF for ; Thu, 10 Jul 2025 07:43:09 +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=1752133389; cv=none; b=M0pp9vOUaEhNSgv0lLeDSXMVE0NNOb1D8EOk8KEe0NeTPvgMm1R6vKCyNfMbN6jiTagzEF3rSeG4UBilZMoSYf8QTnrf6jSIrcCyrCBe6vgachdl4QEO0BB76klKTy3bavn0ZUkZd2ztbrsmAdDB/vk9XwaT840ogS50MGjGKLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133389; c=relaxed/simple; bh=KtsdZM4KLXctJcGMCrXbBrRxHhKQVrvc9LDIn9QBqbg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N/yk8nJKKwHa/IyOtGmvDk92yQtDew7vBzoZe1Dx6r5EyUJPlrH+oLlTzTIC8gFFOdOvfV5fDo7VqVD/R6XzK8+qno3cWU8sgrizGrC+nEMLfp9n8RFWIBcSK15HboNnZoSDr4dKiLPhiKsJChI2GLab29FwxU2srVSusdATHmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gzhnlH7r; 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="gzhnlH7r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA610C4CEE3; Thu, 10 Jul 2025 07:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133389; bh=KtsdZM4KLXctJcGMCrXbBrRxHhKQVrvc9LDIn9QBqbg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gzhnlH7rgtkQtwOiVXVNQLBVvWK4pHVlPNJCIoZcqZNBwO5Ci4plRNV2lo4P3Jb+D 7ZYlMz1f0p/FyYc0KrT2ivikBq44Fi71isQkPJUW/3iNryRfJib88yLXmpMvud45Gp +NYnUf6g1Eh0U6wT0Pb5qDP0Ec5+A5m8sk5rCdyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38291: wifi: ath12k: Prevent sending WMI commands to firmware during firmware crash Date: Thu, 10 Jul 2025 09:42:32 +0200 Message-ID: <2025071011-CVE-2025-38291-25a9@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=3729; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kLLq7mJlxL3pEvS8Rppy/VeeGI8IxBipd9QEITVN2tg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZdL1uv+OusRynnTMfuIygXRpVxfkiosp11h1alPe Cdysn1fRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk7iHDghU5qge98q0WGLh+ bft1N/75pIxzKxjmyheumpYhmeVkpK43f5q6Pv+ilHobAA== 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: Prevent sending WMI commands to firmware during firmware crash Currently, we encounter the following kernel call trace when a firmware crash occurs. This happens because the host sends WMI commands to the firmware while it is in recovery, causing the commands to fail and resulting in the kernel call trace. Set the ATH12K_FLAG_CRASH_FLUSH and ATH12K_FLAG_RECOVERY flags when the host driver receives the firmware crash notification from MHI. This prevents sending WMI commands to the firmware during recovery. Call Trace: dump_stack_lvl+0x75/0xc0 register_lock_class+0x6be/0x7a0 ? __lock_acquire+0x644/0x19a0 __lock_acquire+0x95/0x19a0 lock_acquire+0x265/0x310 ? ath12k_ce_send+0xa2/0x210 [ath12k] ? find_held_lock+0x34/0xa0 ? ath12k_ce_send+0x56/0x210 [ath12k] _raw_spin_lock_bh+0x33/0x70 ? ath12k_ce_send+0xa2/0x210 [ath12k] ath12k_ce_send+0xa2/0x210 [ath12k] ath12k_htc_send+0x178/0x390 [ath12k] ath12k_wmi_cmd_send_nowait+0x76/0xa0 [ath12k] ath12k_wmi_cmd_send+0x62/0x190 [ath12k] ath12k_wmi_pdev_bss_chan_info_request+0x62/0xc0 [ath1 ath12k_mac_op_get_survey+0x2be/0x310 [ath12k] ieee80211_dump_survey+0x99/0x240 [mac80211] nl80211_dump_survey+0xe7/0x470 [cfg80211] ? kmalloc_reserve+0x59/0xf0 genl_dumpit+0x24/0x70 netlink_dump+0x177/0x360 __netlink_dump_start+0x206/0x280 genl_family_rcv_msg_dumpit.isra.22+0x8a/0xe0 ? genl_family_rcv_msg_attrs_parse.isra.23+0xe0/0xe0 ? genl_op_lock.part.12+0x10/0x10 ? genl_dumpit+0x70/0x70 genl_rcv_msg+0x1d0/0x290 ? nl80211_del_station+0x330/0x330 [cfg80211] ? genl_get_cmd_both+0x50/0x50 netlink_rcv_skb+0x4f/0x100 genl_rcv+0x1f/0x30 netlink_unicast+0x1b6/0x260 netlink_sendmsg+0x31a/0x450 __sock_sendmsg+0xa8/0xb0 ____sys_sendmsg+0x1e4/0x260 ___sys_sendmsg+0x89/0xe0 ? local_clock_noinstr+0xb/0xc0 ? rcu_is_watching+0xd/0x40 ? kfree+0x1de/0x370 ? __sys_sendmsg+0x7a/0xc0 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2025-38291 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit a9b46dd2e483bf99fa09e6aeea7701960abaa902 and fixed in 6.15.3 with commit 2563069baf243cadc76dc64d9085606742c4b282 Issue introduced in 6.13 with commit a9b46dd2e483bf99fa09e6aeea7701960abaa902 and fixed in 6.16-rc1 with commit e9e094a9734ea3bd4d4d117c915ccf129ac61ba1 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-38291 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/mhi.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/2563069baf243cadc76dc64d9085606742c4b282 https://git.kernel.org/stable/c/e9e094a9734ea3bd4d4d117c915ccf129ac61ba1