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 47E2F1A0730 for ; Wed, 16 Apr 2025 14:19:34 +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=1744813174; cv=none; b=Fmq/MMuJ6rbkcN6RV/B0bSgGX/jS5ZWRp1Xxji8rugjaAvEl/09dIi98EquxQWMm39rcTLXLd70rlcyK5yJU0s5Gp9soA3aeB2032FOamHYsSQ8FjvyO5Jt2bpVqkEbI/NkwmDvHRGW3WcVy1dRqH0ubrdDRMlJ7PfMxMfqY09Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813174; c=relaxed/simple; bh=ad6AyD6vNAe/1nOA2gCdFUxn7DrBAC8Gwsm4mjQB7hk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DN9bSnQWM6bETvIQXuTpHfNnKJLobLHEnH2XzLNGSrU3U9LBwwspwjrfz7RPnXQWEqApgCvuJSJeopj+TM7L00njLB9cDRQDPtXBRxLUmAYJbJiemsmvSb24VfSCQ2LzP0hWc6PhZRjVOBvXukC2dHZokSmX0Y7xKgN9yOKAWxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zZd2bJbf; 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="zZd2bJbf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B165BC4CEE4; Wed, 16 Apr 2025 14:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813174; bh=ad6AyD6vNAe/1nOA2gCdFUxn7DrBAC8Gwsm4mjQB7hk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zZd2bJbfgODyQ9/yXe4F5yrCjt6DxPxre+TOh2Ajrv0Znq7W14c9A3Sv75DaT237D Mzq1rT6weEwbcTNo0GGOeHE1AFFKfXJesATj2gG47q5sV+/0/YUauhGvv9TPzKEsI4 QE4DXJN85JIYgfr4tZrqdfp3hkriyGln/Y9M5F/w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-23133: wifi: ath11k: update channel list in reg notifier instead reg worker Date: Wed, 16 Apr 2025 16:13:44 +0200 Message-ID: <2025041632-CVE-2025-23133-c1c5@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=3341; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ad6AyD6vNAe/1nOA2gCdFUxn7DrBAC8Gwsm4mjQB7hk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d124Wd0cc/d+m570bq5MpmV1Fpvnz1BZUjq7xT+NT czGq+5qRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzErZ9hDn/tnB+BKR7tSV43 HbeE6V6rO3NyE8OCycs51ppUfA81/G15N3qd+xoJe4+zAA== 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: ath11k: update channel list in reg notifier instead reg worker Currently when ath11k gets a new channel list, it will be processed according to the following steps: 1. update new channel list to cfg80211 and queue reg_work. 2. cfg80211 handles new channel list during reg_work. 3. update cfg80211's handled channel list to firmware by ath11k_reg_update_chan_list(). But ath11k will immediately execute step 3 after reg_work is just queued. Since step 2 is asynchronous, cfg80211 may not have completed handling the new channel list, which may leading to an out-of-bounds write error: BUG: KASAN: slab-out-of-bounds in ath11k_reg_update_chan_list Call Trace: ath11k_reg_update_chan_list+0xbfe/0xfe0 [ath11k] kfree+0x109/0x3a0 ath11k_regd_update+0x1cf/0x350 [ath11k] ath11k_regd_update_work+0x14/0x20 [ath11k] process_one_work+0xe35/0x14c0 Should ensure step 2 is completely done before executing step 3. Thus Wen raised patch[1]. When flag NL80211_REGDOM_SET_BY_DRIVER is set, cfg80211 will notify ath11k after step 2 is done. So enable the flag NL80211_REGDOM_SET_BY_DRIVER then cfg80211 will notify ath11k after step 2 is done. At this time, there will be no KASAN bug during the execution of the step 3. [1] https://patchwork.kernel.org/project/linux-wireless/patch/20230201065313.27203-1-quic_wgong@quicinc.com/ 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-2025-23133 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit f45cb6b29cd36514e13f7519770873d8c0457008 and fixed in 6.14.2 with commit f952fb83c9c6f908d27500764c4aee1df04b9d3f Issue introduced in 6.1 with commit f45cb6b29cd36514e13f7519770873d8c0457008 and fixed in 6.15-rc1 with commit 933ab187e679e6fbdeea1835ae39efcc59c022d2 Issue introduced in 5.15.79 with commit f96fd36936310cefe0ea1370a9ae30e6746e6f62 Issue introduced in 6.0.9 with commit c97b120950b49d76bdce013bd4d9577d769465f4 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-23133 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/reg.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/f952fb83c9c6f908d27500764c4aee1df04b9d3f https://git.kernel.org/stable/c/933ab187e679e6fbdeea1835ae39efcc59c022d2