From mboxrd@z Thu Jan 1 00:00:00 1970 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 AFA1019047A for ; Sat, 11 Jan 2025 12:36:37 +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=1736598997; cv=none; b=eZYsA0DVQQJFe2VsJptmfJE4R9xo9xR6xxSCCKiwF21fUm+J1XpVhSTQqfO61dZz+TahEvTbAeUj1BsT+GI0W2iFF9H17ow/euwQG0NbAcVdde8f5/Ck6zqGVU31SGRfTccb9E+wLVJky6+iq8ufl4YO5GEgwt5eRx36qTdM5Fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598997; c=relaxed/simple; bh=FJysR1hrINneSXypIMTLVgrJgxNyYY/0uQslNbgg1gs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W+NJuOKVZHG1h2FJAJlsumstIyPO3htRTMM/imo+qN3wqgRoikBJUt8+vCByy36hT5UAHEdBLmMvA4vodcPMMja+jbfwU73wR4GlISGoKqFHxzJ7NORWj3dXv0hOC6HB6E8KBqQWMs7mfV7zHgoltToUrKxwUMgomTMvX837Y8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NpotO61Y; 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="NpotO61Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FC8FC4CED2; Sat, 11 Jan 2025 12:36:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736598997; bh=FJysR1hrINneSXypIMTLVgrJgxNyYY/0uQslNbgg1gs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NpotO61Y5NA0AGqsLCtnTAwRoQ+SU+cY/qjTq5ojUx9Jwzwt3p0sjX8Z2fEJE3jIb KHhJTsSp06+DuzsiuzNDRprRyXM3BDdwIvksW1GdVcUZXI2vkaK/XU8SuZQDNg4+28 eW5hKs9J9Pi5DwXVpBR3T7Ko/8439ywU8Ii2PREM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49568: net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg Date: Sat, 11 Jan 2025 13:35:45 +0100 Message-ID: <2025011142-CVE-2024-49568-e5f6@gregkh> X-Mailer: git-send-email 2.48.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=2426; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FJysR1hrINneSXypIMTLVgrJgxNyYY/0uQslNbgg1gs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNqfNEGjmPz9/w1TKu7tWKy8nvVr0OXd+7a2ZCZenKF r+0jQmbO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiofEM82zrrGseFT+eJn0s zarL+R/rqxoXD4a5olYW8TrN0+enHKqaGfBiwVdB9T2HAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg When receiving proposal msg in server, the fields v2_ext_offset/ eid_cnt/ism_gid_cnt in proposal msg are from the remote client and can not be fully trusted. Especially the field v2_ext_offset, once exceed the max value, there has the chance to access wrong address, and crash may happen. This patch checks the fields v2_ext_offset/eid_cnt/ism_gid_cnt before using them. The Linux kernel CVE team has assigned CVE-2024-49568 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 8c3dca341aea885249e08856c4380300b75d2cf5 and fixed in 6.6.68 with commit 295a92e3df32e72aff0f4bc25c310e349d07ffbf Issue introduced in 5.10 with commit 8c3dca341aea885249e08856c4380300b75d2cf5 and fixed in 6.12.7 with commit 42f6beb2d5779429417b5f8115a4e3fa695d2a6c Issue introduced in 5.10 with commit 8c3dca341aea885249e08856c4380300b75d2cf5 and fixed in 6.13-rc4 with commit 7863c9f3d24ba49dbead7e03dfbe40deb5888fdf 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-2024-49568 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/smc/af_smc.c net/smc/smc_clc.c net/smc/smc_clc.h 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/295a92e3df32e72aff0f4bc25c310e349d07ffbf https://git.kernel.org/stable/c/42f6beb2d5779429417b5f8115a4e3fa695d2a6c https://git.kernel.org/stable/c/7863c9f3d24ba49dbead7e03dfbe40deb5888fdf