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 23EEB26E6F6 for ; Sat, 4 Oct 2025 15:19:15 +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=1759591155; cv=none; b=R4lDlWdjbSwtv+KBoiKXz9fCdvSHRHWQYyvt8exaYqr0IoaUAl7G32A0CklWdUZhg4QxBU7de07JhlGsXuwtVFDEpPeVkyKWF7TKEgIVCAuyZY0XvyLdyGybPC8lDJrN/56ICqdnx+bWBOfujeGNivLzD7IUQ5ZqhLkLhwAgcT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591155; c=relaxed/simple; bh=wOVNxWOHYjz39vyvNLUmMQvfNPpfkhPKo+jyoI2P1To=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NRy6EmlRCfRYAy4P2x3bOx8vNtD2pBeVy+PfVNHxDcqLK6V2rfq7RCPhTwK0NCXF25hO+/k1j0ivksA5iE6HsnK3q9AxLBw0KtoVgEAHq0EdsRlMr3ruYRkHPMi44PUiTHKxQunTOHq/KRLZej05aik0p+MIvv7dEiIlPpFCGuY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=giZnQT18; 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="giZnQT18" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2B9CC4CEF1; Sat, 4 Oct 2025 15:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591155; bh=wOVNxWOHYjz39vyvNLUmMQvfNPpfkhPKo+jyoI2P1To=; h=From:To:Cc:Subject:Date:Reply-to:From; b=giZnQT18SuKun1cjwDBuKrf9l/MLOKZKCQYs4iP7ouPcxp8umaxzZ0zV3KyX43UZD RzgOMx0hdR13etGpo+t4+114V8qAfDVgJVPnEW+fXxVFDxSyxEsYlNiFFhChwegugq ugIHktPj5mipi7+esQRL8uZFxOMxf3y2RV8viU5c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53570: wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems() Date: Sat, 4 Oct 2025 17:17:24 +0200 Message-ID: <2025100453-CVE-2023-53570-3733@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=2781; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6xNeigVSqIzeebsLTSx+ZEEoC98jzSlwVhnRGhEaaUk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrVIlHi6a9XLe2q1pi6ZW3ljz7FRhkWPChPvfQhdbC cnMXs59sSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmMvsKwzzdrhy/PUv8Jhid NFunwrmrk4tF5zjDHB4do0WztjitU7kWrmz+NnNT19LwKgA= 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: nl80211: fix integer overflow in nl80211_parse_mbssid_elems() nl80211_parse_mbssid_elems() uses a u8 variable num_elems to count the number of MBSSID elements in the nested netlink attribute attrs, which can lead to an integer overflow if a user of the nl80211 interface specifies 256 or more elements in the corresponding attribute in userspace. The integer overflow can lead to a heap buffer overflow as num_elems determines the size of the trailing array in elems, and this array is thereafter written to for each element in attrs. Note that this vulnerability only affects devices with the wiphy->mbssid_max_interfaces member set for the wireless physical device struct in the device driver, and can only be triggered by a process with CAP_NET_ADMIN capabilities. Fix this by checking for a maximum of 255 elements in attrs. The Linux kernel CVE team has assigned CVE-2023-53570 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit dc1e3cb8da8b414b37208b2fb6755fef8122504b and fixed in 6.1.46 with commit e642eb67b8c10dcce758d549cc81564116e0fa49 Issue introduced in 5.16 with commit dc1e3cb8da8b414b37208b2fb6755fef8122504b and fixed in 6.4.11 with commit 7d09f9f255a5f78578deba5454923072bb53b16c Issue introduced in 5.16 with commit dc1e3cb8da8b414b37208b2fb6755fef8122504b and fixed in 6.5 with commit 6311071a056272e1e761de8d0305e87cc566f734 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-2023-53570 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/nl80211.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/e642eb67b8c10dcce758d549cc81564116e0fa49 https://git.kernel.org/stable/c/7d09f9f255a5f78578deba5454923072bb53b16c https://git.kernel.org/stable/c/6311071a056272e1e761de8d0305e87cc566f734