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 B2F2F313548 for ; Fri, 19 Sep 2025 15:28:25 +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=1758295705; cv=none; b=p4VBNpz/7jqZ54anNQ6O01GkeIJYKfUGUltlb9hUXg0eUHiwWBkZPrDUdeUrKSrVbHCKbX6aHUXDpz3Eox4wA7F/EJrRs6+A82qP763/ZnXLkpIwgqMo6gdmiZnZtnZnkK0li2Kz8gacNZR6opD/zmbs9TFNtjgqVi6tmIgaHT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295705; c=relaxed/simple; bh=yY5G1Q3uSiZGa9fxFq0jO7tGBTD/r6uNGJDabXpX1qE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ByYzlW5kd//uALS0VxvXl+miYGr9+0eZniQOyhwgm/Ey95JJShEQYRoloFljQqMJcdyh9Jte9BYZ9orZM2fAGLO1TuDutQXExfo0+eq/5P4wiXBrGINRQNn495SJ3LDkyPoYcrQBSVOT60TI02PHvDHXgB/7LuAAFSm1nQPY6wg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Of+5bUAF; 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="Of+5bUAF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE3C4C4CEF0; Fri, 19 Sep 2025 15:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295705; bh=yY5G1Q3uSiZGa9fxFq0jO7tGBTD/r6uNGJDabXpX1qE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Of+5bUAF7TVdm+Br5+cRAh37OB0OH0q9vludbl2mlp69HSrGAM0/uiZG524sRbte1 5dlh7MIIH9Efshr4enLZQFtJmOL/6061Kh4dSWoV6qJ99CD/Mrz/Sio+5u50XCIBnc 0i3f6B21Xbobs8+e5LeTgArkj+sDIkOBpDFpJaWY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39849: wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result() Date: Fri, 19 Sep 2025 17:28:13 +0200 Message-ID: <2025091904-CVE-2025-39849-c414@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=2665; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B/J+ImUkSdn2T8YvhPwerOD035vy16l12vJw3oTBy08=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny1pMKtcvrZ64d2OE0JwN0Sc7LqzQ8r3/RS9IqvleT taaDf1rOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAids4M8/SP2p3z/B0skSlU e/P8fvP4lz17mRkWtOrVTj0vzLHea9e/ZH/Jzaebjz/8BAA= 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: sme: cap SSID length in __cfg80211_connect_result() If the ssid->datalen is more than IEEE80211_MAX_SSID_LEN (32) it would lead to memory corruption so add some bounds checking. The Linux kernel CVE team has assigned CVE-2025-39849 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.16 with commit dd43f8f90206054e7da7593de0a334fb2cd0ea88 and fixed in 6.1.151 with commit 8e751d46336205abc259ed3990e850a9843fb649 Issue introduced in 6.3 with commit c38c701851011c94ce3be1ccb3593678d2933fd8 and fixed in 6.6.105 with commit e472f59d02c82b511bc43a3f96d62ed08bf4537f Issue introduced in 6.3 with commit c38c701851011c94ce3be1ccb3593678d2933fd8 and fixed in 6.12.46 with commit 31229145e6ba5ace3e9391113376fa05b7831ede Issue introduced in 6.3 with commit c38c701851011c94ce3be1ccb3593678d2933fd8 and fixed in 6.16.6 with commit 5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523 Issue introduced in 6.3 with commit c38c701851011c94ce3be1ccb3593678d2933fd8 and fixed in 6.17-rc5 with commit 62b635dcd69c4fde7ce1de4992d71420a37e51e3 Issue introduced in 6.2.3 with commit bf3c348c5fdcf00a7eeed04a1b83e454d2dca2e5 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-39849 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/sme.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/8e751d46336205abc259ed3990e850a9843fb649 https://git.kernel.org/stable/c/e472f59d02c82b511bc43a3f96d62ed08bf4537f https://git.kernel.org/stable/c/31229145e6ba5ace3e9391113376fa05b7831ede https://git.kernel.org/stable/c/5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523 https://git.kernel.org/stable/c/62b635dcd69c4fde7ce1de4992d71420a37e51e3