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 D5FF914BFA2 for ; Thu, 1 May 2025 13:08:59 +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=1746104939; cv=none; b=ks7AntHzQ/P3QULhNTHPQIxc+VeGt5EhCnACDbfHkN86DY5md5UCGdoJJrevOKQOXUsNGos4JL7E36g59BFqln0F4PX9Nt6zW9B4Clf1e5tXZk6A48gv/4aupvKLoe4Iaz4slnTgrIlVfbdIJxXCu9nSe32TfdYa266XwJRjiuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104939; c=relaxed/simple; bh=kQAXz8Xd220Lx1obJVyJRI6c8FIVQ/Pwoj/vGjeoKF4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dawm7gQL2AYCCVn8ICB+AnGkplIUEhxJ25LqEOcRpDUnRZvFMZ90y1loP1KqCP7z+KESVHHdYxY3vdbKnTjlbKjLJyjmasC9Qppx2PtbirIxx+0WrlPoiozcORybB0Cvmu28HrdyhumokWEktVTaUh8hxr96ClMx8NkzpXM5C7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cJtmfvIn; 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="cJtmfvIn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6989C4CEE3; Thu, 1 May 2025 13:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104939; bh=kQAXz8Xd220Lx1obJVyJRI6c8FIVQ/Pwoj/vGjeoKF4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cJtmfvIncpAtnh5bG+IXq7nKZjFiflm0WKKxWy6LaWM1sy+TcFkhYZ/RVVPBD/qQ/ QQJaQyKnwQSqXXfp5+Th5PnKtZTCIKCOrqTEItmCW5QcqAzNab9OyfZS+8rQWWTuZi rinp4V6fq7BEwWyuqq6HcrY9iFzt+1zZ5iQUDZPM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37794: wifi: mac80211: Purge vif txq in ieee80211_do_stop() Date: Thu, 1 May 2025 15:07:41 +0200 Message-ID: <2025050121-CVE-2025-37794-0a39@gregkh> X-Mailer: git-send-email 2.49.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=5995; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oKeqPkg9qUgu8sY0uu1DDRDCdr9rEAOhBxwxEwV368k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCRZxtWw/KbzJczaIuYce89OlbC6mN377rvFHQ4np07 obb/yDZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIhgLDgt2Sri5/ZTerb06Z 2ScW5hh6dfLKCoYFp7xiLK9N3C+WLu7hmHHn8Iu+0FgvAA== 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: mac80211: Purge vif txq in ieee80211_do_stop() After ieee80211_do_stop() SKB from vif's txq could still be processed. Indeed another concurrent vif schedule_and_wake_txq call could cause those packets to be dequeued (see ieee80211_handle_wake_tx_queue()) without checking the sdata current state. Because vif.drv_priv is now cleared in this function, this could lead to driver crash. For example in ath12k, ahvif is store in vif.drv_priv. Thus if ath12k_mac_op_tx() is called after ieee80211_do_stop(), ahvif->ah can be NULL, leading the ath12k_warn(ahvif->ah,...) call in this function to trigger the NULL deref below. Unable to handle kernel paging request at virtual address dfffffc000000001 KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] batman_adv: bat0: Interface deactivated: brbh1337 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfffffc000000001] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] SMP CPU: 1 UID: 0 PID: 978 Comm: lbd Not tainted 6.13.0-g633f875b8f1e #114 Hardware name: HW (DT) pstate: 10000005 (nzcV daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ath12k_mac_op_tx+0x6cc/0x29b8 [ath12k] lr : ath12k_mac_op_tx+0x174/0x29b8 [ath12k] sp : ffffffc086ace450 x29: ffffffc086ace450 x28: 0000000000000000 x27: 1ffffff810d59ca4 x26: ffffff801d05f7c0 x25: 0000000000000000 x24: 000000004000001e x23: ffffff8009ce4926 x22: ffffff801f9c0800 x21: ffffff801d05f7f0 x20: ffffff8034a19f40 x19: 0000000000000000 x18: ffffff801f9c0958 x17: ffffff800bc0a504 x16: dfffffc000000000 x15: ffffffc086ace4f8 x14: ffffff801d05f83c x13: 0000000000000000 x12: ffffffb003a0bf03 x11: 0000000000000000 x10: ffffffb003a0bf02 x9 : ffffff8034a19f40 x8 : ffffff801d05f818 x7 : 1ffffff0069433dc x6 : ffffff8034a19ee0 x5 : ffffff801d05f7f0 x4 : 0000000000000000 x3 : 0000000000000001 x2 : 0000000000000000 x1 : dfffffc000000000 x0 : 0000000000000008 Call trace: ath12k_mac_op_tx+0x6cc/0x29b8 [ath12k] (P) ieee80211_handle_wake_tx_queue+0x16c/0x260 ieee80211_queue_skb+0xeec/0x1d20 ieee80211_tx+0x200/0x2c8 ieee80211_xmit+0x22c/0x338 __ieee80211_subif_start_xmit+0x7e8/0xc60 ieee80211_subif_start_xmit+0xc4/0xee0 __ieee80211_subif_start_xmit_8023.isra.0+0x854/0x17a0 ieee80211_subif_start_xmit_8023+0x124/0x488 dev_hard_start_xmit+0x160/0x5a8 __dev_queue_xmit+0x6f8/0x3120 br_dev_queue_push_xmit+0x120/0x4a8 __br_forward+0xe4/0x2b0 deliver_clone+0x5c/0xd0 br_flood+0x398/0x580 br_dev_xmit+0x454/0x9f8 dev_hard_start_xmit+0x160/0x5a8 __dev_queue_xmit+0x6f8/0x3120 ip6_finish_output2+0xc28/0x1b60 __ip6_finish_output+0x38c/0x638 ip6_output+0x1b4/0x338 ip6_local_out+0x7c/0xa8 ip6_send_skb+0x7c/0x1b0 ip6_push_pending_frames+0x94/0xd0 rawv6_sendmsg+0x1a98/0x2898 inet_sendmsg+0x94/0xe0 __sys_sendto+0x1e4/0x308 __arm64_sys_sendto+0xc4/0x140 do_el0_svc+0x110/0x280 el0_svc+0x20/0x60 el0t_64_sync_handler+0x104/0x138 el0t_64_sync+0x154/0x158 To avoid that, empty vif's txq at ieee80211_do_stop() so no packet could be dequeued after ieee80211_do_stop() (new packets cannot be queued because SDATA_STATE_RUNNING is cleared at this point). The Linux kernel CVE team has assigned CVE-2025-37794 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit ba8c3d6f16a1f9305c23ac1d2fd3992508c5ac03 and fixed in 6.1.135 with commit 5f6863dc407f25fcf23fc857f9ac51756a09ea2c Issue introduced in 4.1 with commit ba8c3d6f16a1f9305c23ac1d2fd3992508c5ac03 and fixed in 6.6.88 with commit c74b84544dee27298a71715b3ce2c40d372b5a23 Issue introduced in 4.1 with commit ba8c3d6f16a1f9305c23ac1d2fd3992508c5ac03 and fixed in 6.12.25 with commit a8df245b5b29f6de98d016dc18e2bb35ec70b0cb Issue introduced in 4.1 with commit ba8c3d6f16a1f9305c23ac1d2fd3992508c5ac03 and fixed in 6.14.4 with commit 8bc34db7f771a464ff8f686b6f8d4e04963fec27 Issue introduced in 4.1 with commit ba8c3d6f16a1f9305c23ac1d2fd3992508c5ac03 and fixed in 6.15-rc3 with commit 378677eb8f44621ecc9ce659f7af61e5baa94d81 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-37794 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: net/mac80211/iface.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/5f6863dc407f25fcf23fc857f9ac51756a09ea2c https://git.kernel.org/stable/c/c74b84544dee27298a71715b3ce2c40d372b5a23 https://git.kernel.org/stable/c/a8df245b5b29f6de98d016dc18e2bb35ec70b0cb https://git.kernel.org/stable/c/8bc34db7f771a464ff8f686b6f8d4e04963fec27 https://git.kernel.org/stable/c/378677eb8f44621ecc9ce659f7af61e5baa94d81