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 E83D2293C62 for ; Wed, 18 Jun 2025 11:14:48 +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=1750245289; cv=none; b=IR5lMX+1FoMKoH7M46MYHoTSI+mf30R2XX0k6xFeCCtobiZR8DcO0PJ0y6li8eSbOPxBAN0PsHXDuKTVxiaCnrUSVa1eipxfZIyuqpkwe50KZ6mk/XPfQptsDhnPkEtwXaC+nejrnPMD8sLm9o+DmI/yRMnbX2h4ojjsv9ry2Lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245289; c=relaxed/simple; bh=6hK1veM7XOsqXVhfUTpn6bRm+LWwo2Hi4ZTTS4XoPbU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j7RXZUehVIsW4Aq0n8i29UPaV/E5Ik6kzBfX9xUtbLrv0j8WgowTY/wF3wqe4xOkZkdmLkgs0LhND4yi6FVnD3heJXoaqCH1WF3aR/TzuD6CY3GEVVfVqNxc/JqpPLf5tQHFiqvG8MWvcoRz4iKs0CqW6C96B1k+hTAmP5M4qYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hway/tKO; 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="hway/tKO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59750C4CEE7; Wed, 18 Jun 2025 11:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245288; bh=6hK1veM7XOsqXVhfUTpn6bRm+LWwo2Hi4ZTTS4XoPbU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hway/tKOvYCnucBqOuR34ney0y1NPPqZKgvtPHGGhIccpAEbPhAYEVw+XXdqv0g4F pjIl7po5rKM3C47S4Iee3UW3dBQAEtaVACIJHML+oPIPfjHJyscaiyt734t+VOdyXh rOJ2mXr1fmJu8ewUngSIcYqYFtWDu2VgFOsCJt+s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50187: ath11k: fix netdev open race Date: Wed, 18 Jun 2025 13:04:12 +0200 Message-ID: <2025061835-CVE-2022-50187-ba19@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=4057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eUsyua6GbOW2L6GXsOe4Y4HiJ9cUOM9TUv3FkF2e+QY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc/q1Ir+pyHb7OC97pnA+5aKTXVmfwz/uDMGS2W9lu 6/+l8nsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcv8IwP1Yq1/yzUMCblT5L 7/0tePaVQZ+himHBte1l0YcuZEamNJlL3994SPf5q47jAA== 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: ath11k: fix netdev open race Make sure to allocate resources needed before registering the device. This specifically avoids having a racing open() trigger a BUG_ON() in mod_timer() when ath11k_mac_op_start() is called before the mon_reap_timer as been set up. I did not see this issue with next-20220310, but I hit it on every probe with next-20220511. Perhaps some timing changed in between. Here's the backtrace: [ 51.346947] kernel BUG at kernel/time/timer.c:990! [ 51.346958] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ... [ 51.578225] Call trace: [ 51.583293] __mod_timer+0x298/0x390 [ 51.589518] mod_timer+0x14/0x20 [ 51.595368] ath11k_mac_op_start+0x41c/0x4a0 [ath11k] [ 51.603165] drv_start+0x38/0x60 [mac80211] [ 51.610110] ieee80211_do_open+0x29c/0x7d0 [mac80211] [ 51.617945] ieee80211_open+0x60/0xb0 [mac80211] [ 51.625311] __dev_open+0x100/0x1c0 [ 51.631420] __dev_change_flags+0x194/0x210 [ 51.638214] dev_change_flags+0x24/0x70 [ 51.644646] do_setlink+0x228/0xdb0 [ 51.650723] __rtnl_newlink+0x460/0x830 [ 51.657162] rtnl_newlink+0x4c/0x80 [ 51.663229] rtnetlink_rcv_msg+0x124/0x390 [ 51.669917] netlink_rcv_skb+0x58/0x130 [ 51.676314] rtnetlink_rcv+0x18/0x30 [ 51.682460] netlink_unicast+0x250/0x310 [ 51.688960] netlink_sendmsg+0x19c/0x3e0 [ 51.695458] ____sys_sendmsg+0x220/0x290 [ 51.701938] ___sys_sendmsg+0x7c/0xc0 [ 51.708148] __sys_sendmsg+0x68/0xd0 [ 51.714254] __arm64_sys_sendmsg+0x28/0x40 [ 51.720900] invoke_syscall+0x48/0x120 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 The Linux kernel CVE team has assigned CVE-2022-50187 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 5.10.137 with commit a2c45f8c3d18269e641f0c7da2dde47ef8414034 Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 5.15.61 with commit eaff3946a86fc63280a30158a4ae1e141449817c Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 5.18.18 with commit abb7dc8fbb27c15dcc927df56190f3c5ede58bd5 Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 5.19.2 with commit 307ce58270b3b50ca21cfcc910568429b06803f7 Issue introduced in 5.6 with commit d5c65159f2895379e11ca13f62feabe93278985d and fixed in 6.0 with commit d4ba1ff87b17e81686ada8f429300876f55f95ad 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-2022-50187 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/ath11k/core.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/a2c45f8c3d18269e641f0c7da2dde47ef8414034 https://git.kernel.org/stable/c/eaff3946a86fc63280a30158a4ae1e141449817c https://git.kernel.org/stable/c/abb7dc8fbb27c15dcc927df56190f3c5ede58bd5 https://git.kernel.org/stable/c/307ce58270b3b50ca21cfcc910568429b06803f7 https://git.kernel.org/stable/c/d4ba1ff87b17e81686ada8f429300876f55f95ad