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 1044928DB56 for ; Tue, 30 Dec 2025 12:14:26 +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=1767096867; cv=none; b=Y1fbsrt3llNp69bOlnBXVYkkgije3T2wXntkxBQypxZ+tAWVQ6TWzwmUwrEbgNmNqdBBv5j7sl2WQ1pzqo/1iRZxlMHf4FkXcpbidEVsuElumELjPRPJVqUY+xFwO6o8TbQ902ydkXoGblJTwGUor+GYDt4PhsQTrdfig0LAr48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096867; c=relaxed/simple; bh=8m4TTZ1ZQYwGYepqaqoXrHxc3/YLuLH8Wpt9oIBO66s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CoMXanXWotC1b8BRoeq9aTbZhVLDzVy0Wpdk3Z9+/6YzvXwBCk2FGVci7X1od/vPAWx17D5Ir9L/D5VGGw2AO3l9lKce5PqpVskmZZNUi7GngalR/3zh9YzLHAr2lsh9K4MAri96hi5ZeS9PbAmjez96qDgjvzBTHTLiiedGzBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mulg/IOJ; 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="Mulg/IOJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48C39C4CEFB; Tue, 30 Dec 2025 12:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096866; bh=8m4TTZ1ZQYwGYepqaqoXrHxc3/YLuLH8Wpt9oIBO66s=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Mulg/IOJO441bR6lQ5WcNK3J/cquK8wzovgZYAsjnILkM7igrinQDbcC6lo2In5Qv LbncAU8T7lYJcnFn+vogMYA242wFejMXhcjDg1LtogOwFwW/g9WbZPg7M/rJY+jITr kLdwQCyjotWJ83YJYJKyY9X+B/fdbffr3NcGQGJE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50831: wifi: mac80211: fix MBSSID parsing use-after-free Date: Tue, 30 Dec 2025 13:13:17 +0100 Message-ID: <2025123016-CVE-2022-50831-28c6@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2143; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wjeEYm8I945pwodBaZsfOHLI0Esg3UpdcA6ZYBk7rTM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB+/c4BHWXCF25EyoRG11h+M6k2usfov+L3gj7ifL+ EugqDS4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyQZhhDpdftPTzNewWJzKq M2Iznwcw5h29xrDgxOzufzt0Uzedtd63118+1ErcWOEkAA== 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: fix MBSSID parsing use-after-free commit ff05d4b45dd89b922578dac497dcabf57cf771c6 When we parse a multi-BSSID element, we might point some element pointers into the allocated nontransmitted_profile. However, we free this before returning, causing UAF when the relevant pointers in the parsed elements are accessed. Fix this by not allocating the scratch buffer separately but as part of the returned structure instead, that way, there are no lifetime issues with it. The scratch buffer introduction as part of the returned data here is taken from MLO feature work done by Ilan. This fixes CVE-2022-42719. The Linux kernel CVE team has assigned CVE-2022-50831 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 5023b14cf4df4d22e1a80738167f3438c9e62e5f and fixed in 5.15.74 with commit de124365a7d2deed22cf706583930f28d537ff0f 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-50831 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/ieee80211_i.h net/mac80211/util.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/de124365a7d2deed22cf706583930f28d537ff0f