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 99EAF2E3AE5 for ; Tue, 7 Oct 2025 15:20:27 +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=1759850427; cv=none; b=XQnJpyyLgCdH/dOGFIhmc9HkJKk4I+pzZ2cSbO/MdZ6pNHwfjFssBVnvH0sT0aAdKf12yaywzXZq6ko8qzuwH/C+oGy368eezzJxCvVgP+AfyMKN9yr4gQC/HTLsFsYe/hrrH5eUSawmB/0KFpZEDQZmIVaDDLuo1/AbRs0W+CU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850427; c=relaxed/simple; bh=X4fMuMr9tPFZF5+CiESCd67yt1vOHFAMyXTvJvD4PB4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oid9U1vSRtvtx7WJ8SrnhUqino5edwrkpkZqEZRi6tTiaj2PvkhPwXkT3jBslafSf7GckNs5QlJZ6P2WENQHz4eMdSfD3Za+d7GUyHZszO/Nu4FEH4pku4XkkXTpwYUygrBfdrSTcg3TwzmC2p8YfZI/tG33/vQeKX/1NmaoP0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rVimLzYB; 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="rVimLzYB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC25EC4CEF1; Tue, 7 Oct 2025 15:20:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850427; bh=X4fMuMr9tPFZF5+CiESCd67yt1vOHFAMyXTvJvD4PB4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rVimLzYByLiQAgb0aFc2cUs0t9ff4qvgh3tNeyheSY5fHATu4G/yu25Z2WBYuXwUx wafwNoVQ4HvAQq+/nSqs4inuSCliW1mu2OfUi2wWWRKioc0mIC4lqxBE+V396dgV6h /6Wgi07+FM2i57Lru5YTHi2H4UqNE9IICxeo/kC8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50533: wifi: mac80211: mlme: fix null-ptr deref on failed assoc Date: Tue, 7 Oct 2025 17:19:20 +0200 Message-ID: <2025100708-CVE-2022-50533-7dfc@gregkh> X-Mailer: git-send-email 2.51.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=2350; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U4A8LPpxXMq/ELh/fhQ0YFfV5kcOQ58mLNPakCSbxRg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9XP+TTqefVBA/8ymukUrLjtHCLc90NlRu6YwTnbai zUM8p+tOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiG3sYFkz4sNBowelb0la/ JbWuT5ZkSDQ8rMiwoGv1IaWjtee0n/15tjpr0ZNXAVFv7wEA 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: mlme: fix null-ptr deref on failed assoc If association to an AP without a link 0 fails, then we crash in tracing because it assumes that either ap_mld_addr or link 0 BSS is valid, since we clear sdata->vif.valid_links and then don't add the ap_mld_addr to the struct. Since we clear also sdata->vif.cfg.ap_addr, keep a local copy of it and assign it earlier, before clearing valid_links, to fix this. The Linux kernel CVE team has assigned CVE-2022-50533 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 81151ce462e533551f3284bfdb8e0f461c9220e6 and fixed in 6.0.16 with commit c695dfba8dfb82dc7ace4f22be088916cbf621ca Issue introduced in 6.0 with commit 81151ce462e533551f3284bfdb8e0f461c9220e6 and fixed in 6.1.2 with commit bb7743955a929e44b308cc3f63f8cc03873c1bee Issue introduced in 6.0 with commit 81151ce462e533551f3284bfdb8e0f461c9220e6 and fixed in 6.2 with commit 78a6a43aaf87180ec7425a2a90468e1b4d09a1ec 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-50533 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/mlme.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/c695dfba8dfb82dc7ace4f22be088916cbf621ca https://git.kernel.org/stable/c/bb7743955a929e44b308cc3f63f8cc03873c1bee https://git.kernel.org/stable/c/78a6a43aaf87180ec7425a2a90468e1b4d09a1ec