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 CEEA028AAF9 for ; Fri, 22 Aug 2025 16:02:51 +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=1755878571; cv=none; b=NRR7Mg9EdthYfTQviuccb2g2f974rT06grF/1gy/qoCGrqqngl4LxvvTejX8ama6u5iv+T6j4hHv0ZhjpFB/GaA08aSkgXHDqXi6/z0pemm64PluAoCwIZUKd9w+gQiwtLzuGbQ1Vpb5vmPn+fX+FKkbd/oOL+/l+DNPMKTPNns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878571; c=relaxed/simple; bh=kulcWXrfhXH7qHPDdYGaeXa5OVF5SNEm9zIKuIf7j2E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sYmOoZF9vOhfqKlmWY7DUfPS7XWSrYS9nQIUjfIEN5/moWBL8b/W8P3kEr+2zp4WVmcYnc2tbNWuuTqnG+SMLmhh9onLUMIXCiuGpNfo9dXFtoH4KbDWQSuSMm2h5JI9LFtjxOJc64VhCLmydBbQTJXUefiuInRu3GSHIaHG1oI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XeJTr4ir; 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="XeJTr4ir" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 571F2C4CEF4; Fri, 22 Aug 2025 16:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878571; bh=kulcWXrfhXH7qHPDdYGaeXa5OVF5SNEm9zIKuIf7j2E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XeJTr4irlIz4mUpgikWjsCBovd7GornKSQAcpfcJO44+7h7iUyH9slUyFNu6QQ22Y nl4Etxvjen5/qea50SLWE1gK3nrDBGQViBqYOeAeG0Duf435cSq+LgRkVpdjdTVLFs uDoMEiU7TTId5ZJqo4l9IUTYCNloRTk5rqQl38EU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38643: wifi: cfg80211: Add missing lock in cfg80211_check_and_end_cac() Date: Fri, 22 Aug 2025 18:00:51 +0200 Message-ID: <2025082235-CVE-2025-38643-a281@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=4579; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eax3hkLANJzId1rPSmHmBKZtEKFEakRJvhEyUzBT0xo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpiifeiZXL3jny3S5Vomya2F+r+8Emigzb9oTOLf+1 +5dF+Oed8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbtowLGiU1TIwfZefHfV6 2QTDDZukG4zUVBjmO26cxcnZ75uV57BnxaZDGsaPjOM0AA== 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: cfg80211: Add missing lock in cfg80211_check_and_end_cac() Callers of wdev_chandef() must hold the wiphy mutex. But the worker cfg80211_propagate_cac_done_wk() never takes the lock. Which triggers the warning below with the mesh_peer_connected_dfs test from hostapd and not (yet) released mac80211 code changes: WARNING: CPU: 0 PID: 495 at net/wireless/chan.c:1552 wdev_chandef+0x60/0x165 Modules linked in: CPU: 0 UID: 0 PID: 495 Comm: kworker/u4:2 Not tainted 6.14.0-rc5-wt-g03960e6f9d47 #33 13c287eeabfe1efea01c0bcc863723ab082e17cf Workqueue: cfg80211 cfg80211_propagate_cac_done_wk Stack: 00000000 00000001 ffffff00 6093267c 00000000 6002ec30 6d577c50 60037608 00000000 67e8d108 6063717b 00000000 Call Trace: [<6002ec30>] ? _printk+0x0/0x98 [<6003c2b3>] show_stack+0x10e/0x11a [<6002ec30>] ? _printk+0x0/0x98 [<60037608>] dump_stack_lvl+0x71/0xb8 [<6063717b>] ? wdev_chandef+0x60/0x165 [<6003766d>] dump_stack+0x1e/0x20 [<6005d1b7>] __warn+0x101/0x20f [<6005d3a8>] warn_slowpath_fmt+0xe3/0x15d [<600b0c5c>] ? mark_lock.part.0+0x0/0x4ec [<60751191>] ? __this_cpu_preempt_check+0x0/0x16 [<600b11a2>] ? mark_held_locks+0x5a/0x6e [<6005d2c5>] ? warn_slowpath_fmt+0x0/0x15d [<60052e53>] ? unblock_signals+0x3a/0xe7 [<60052f2d>] ? um_set_signals+0x2d/0x43 [<60751191>] ? __this_cpu_preempt_check+0x0/0x16 [<607508b2>] ? lock_is_held_type+0x207/0x21f [<6063717b>] wdev_chandef+0x60/0x165 [<605f89b4>] regulatory_propagate_dfs_state+0x247/0x43f [<60052f00>] ? um_set_signals+0x0/0x43 [<605e6bfd>] cfg80211_propagate_cac_done_wk+0x3a/0x4a [<6007e460>] process_scheduled_works+0x3bc/0x60e [<6007d0ec>] ? move_linked_works+0x4d/0x81 [<6007d120>] ? assign_work+0x0/0xaa [<6007f81f>] worker_thread+0x220/0x2dc [<600786ef>] ? set_pf_worker+0x0/0x57 [<60087c96>] ? to_kthread+0x0/0x43 [<6008ab3c>] kthread+0x2d3/0x2e2 [<6007f5ff>] ? worker_thread+0x0/0x2dc [<6006c05b>] ? calculate_sigpending+0x0/0x56 [<6003b37d>] new_thread_handler+0x4a/0x64 irq event stamp: 614611 hardirqs last enabled at (614621): [<00000000600bc96b>] __up_console_sem+0x82/0xaf hardirqs last disabled at (614630): [<00000000600bc92c>] __up_console_sem+0x43/0xaf softirqs last enabled at (614268): [<00000000606c55c6>] __ieee80211_wake_queue+0x933/0x985 softirqs last disabled at (614266): [<00000000606c52d6>] __ieee80211_wake_queue+0x643/0x985 The Linux kernel CVE team has assigned CVE-2025-38643 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 26ec17a1dc5ecdd8d91aba63ead6f8b5ad5dea0d and fixed in 6.15.10 with commit 7022df2248c08c6f75a01714163ac902333bf3db Issue introduced in 5.5 with commit 26ec17a1dc5ecdd8d91aba63ead6f8b5ad5dea0d and fixed in 6.16.1 with commit dbce810607726408f889d3358f4780fd1436861e Issue introduced in 5.5 with commit 26ec17a1dc5ecdd8d91aba63ead6f8b5ad5dea0d and fixed in 6.17-rc1 with commit 2c5dee15239f3f3e31aa5c8808f18996c039e2c1 Issue introduced in 4.14.170 with commit 2dbb6faebb94d6d5ae87e5ea6be9280c366393e1 Issue introduced in 4.19.102 with commit a4f85674e4693904ade7cbf6722d0d105d8062d8 Issue introduced in 5.4.18 with commit e233cbaf8ecc5859f0417dd53899da4edb477991 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-38643 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/wireless/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/7022df2248c08c6f75a01714163ac902333bf3db https://git.kernel.org/stable/c/dbce810607726408f889d3358f4780fd1436861e https://git.kernel.org/stable/c/2c5dee15239f3f3e31aa5c8808f18996c039e2c1