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 0DAAA2882AB for ; Wed, 18 Jun 2025 11:03:05 +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=1750244585; cv=none; b=JvaFlXka3VD0eh4sriP/pvtGs1EvYVadXo5yrGE47lsDkB7BVuRKgTni8KEHU+F0slvV1HspIVxNzd1IVU+/Uahs0uKdDFRggkcGi9KKWYQcNKYvimFCd2djnRXgIYjrmN3+TEaLJyQAQklXGSIa6YhWeIvOL0HEuVjGO6mbpzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244585; c=relaxed/simple; bh=BlvLpN+Qn9uT+B4XtwgrfnDk0EM4NFUX8wKIipSjim4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ot1FYRE/dCXP7Qka6sxjIzaqa5r8CQG+TVgrjtbumN/1QPUhlui1PDOMAJtEHTFZX1a8P7z59Rj09Eo0SfgDQMwj5UMkZD9GG334wouRkv2weAerk4lxSYE6H0xA0cmi1/TkA8We1XiEcw/xfZmTneE5VJ0lagCJXCAvzb/xbnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=epmECMtQ; 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="epmECMtQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E07BC4CEE7; Wed, 18 Jun 2025 11:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244584; bh=BlvLpN+Qn9uT+B4XtwgrfnDk0EM4NFUX8wKIipSjim4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=epmECMtQ2vFahMsyUPnq9v4JIgXoV7Ls6UIBsU1E/6Uqu/YVPZQMeUw7qhDiX4A9G 48Dkkwrh1K8UYDYVSA9AhNXt7BWjvESlw07PtMzV4auOI9ga3y9jYmMj2/o+FHSUge yaSkzG/aUlScRPQSM9+7q3Gkn6GWKAQQtC09Scn4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49942: wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected Date: Wed, 18 Jun 2025 13:00:07 +0200 Message-ID: <2025061807-CVE-2022-49942-8f93@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=3717; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nxNoRLgRMWfUxmoDi1v8+uE4pWbMUm5qVVrGi7lzS3o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8wFJL98+79Gyq4zUX7iJbat6Y071oaKG/pNNljdL hprtOl0RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykoZNhwZoagY2y/z+LNvZu ++ehxd3AOql3BcNcCW+J6pUaZ/YIOsrGSCgKH5nT17sIAA== 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: Don't finalize CSA in IBSS mode if state is disconnected When we are not connected to a channel, sending channel "switch" announcement doesn't make any sense. The BSS list is empty in that case. This causes the for loop in cfg80211_get_bss() to be bypassed, so the function returns NULL (check line 1424 of net/wireless/scan.c), causing the WARN_ON() in ieee80211_ibss_csa_beacon() to get triggered (check line 500 of net/mac80211/ibss.c), which was consequently reported on the syzkaller dashboard. Thus, check if we have an existing connection before generating the CSA beacon in ieee80211_ibss_finish_csa(). The Linux kernel CVE team has assigned CVE-2022-49942 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 4.9.328 with commit cdb9a8da9b84800eb15506cd9363cf0cf059e677 Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 4.14.293 with commit 1691a48aef0a82d1754b9853dae7e3f5cacdf70b Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 4.19.258 with commit d9eb37db6a28b59a95a3461450ee209654c5f95b Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 5.4.213 with commit 66689c5c02acd4d76c28498fe220998610aec61e Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 5.10.142 with commit dd649b49219a0388cc10fc40e4c2ea681566a780 Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 5.15.66 with commit 552ba102a6898630a7d16887f29e606d6fabe508 Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 5.19.8 with commit 864e280cb3a9a0f5212b16ef5057c4e692f7039d Issue introduced in 3.13 with commit cd7760e62c2ac8581f050b2d36501d1a60beaf83 and fixed in 6.0 with commit 15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0 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-49942 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/ibss.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/cdb9a8da9b84800eb15506cd9363cf0cf059e677 https://git.kernel.org/stable/c/1691a48aef0a82d1754b9853dae7e3f5cacdf70b https://git.kernel.org/stable/c/d9eb37db6a28b59a95a3461450ee209654c5f95b https://git.kernel.org/stable/c/66689c5c02acd4d76c28498fe220998610aec61e https://git.kernel.org/stable/c/dd649b49219a0388cc10fc40e4c2ea681566a780 https://git.kernel.org/stable/c/552ba102a6898630a7d16887f29e606d6fabe508 https://git.kernel.org/stable/c/864e280cb3a9a0f5212b16ef5057c4e692f7039d https://git.kernel.org/stable/c/15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0