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 3C25219047A for ; Sat, 11 Jan 2025 12:36:34 +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=1736598994; cv=none; b=aDBu3tn+8dJrN6JciEr+AJc4gCjO5CJVuUPKDp+CNDVNPk6vzKM3aXrLu5YwngcTYLkVW+6LHKA2ecqdWICR3h9KS6ed9h9Z0U+sC5FuJdfi28IRGpfIqbaipV6zYFQsh+XkFLV1iazfLSEdICkWYZctgwvtxegsdUbBDtlHcO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598994; c=relaxed/simple; bh=UzRQeTI7/95+tU7R0V20cG20/Y/NOqbYb5IBIg8v54Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kRx1RTc7T6bLdVz/FXKkW0tgpqNqQtS+5QC8trKNqt71Gvza/ZtvnqJDPQFOulex+Fv80MT6ylvJU6crhAf1INvL+9fHbwPo0WQbgQ6imc3LNwPu3mhgzEGP5Y6kNiKHdB4QAfAe5vPR7eHaKXqLDFGkJxWcMPqjMXKYNkSRtmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l8CMJ98T; 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="l8CMJ98T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C64EC4CED2; Sat, 11 Jan 2025 12:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736598994; bh=UzRQeTI7/95+tU7R0V20cG20/Y/NOqbYb5IBIg8v54Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l8CMJ98TcXk8bD3p5QVZwtfByhu+LOdH7o5pVCcTjhHMaVDM6vhloh1GFyj07kU0u VSDWLvppF13lbIMDNde07BlAfYDrYfgWYm4D3tDQ/0LEsBBOgicGiOzuOebapAJubR PwQRUjWOvLVpUjnFAqswIU6shvkgR14m3gFspZp0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47408: net/smc: check smcd_v2_ext_offset when receiving proposal msg Date: Sat, 11 Jan 2025 13:35:44 +0100 Message-ID: <2025011141-CVE-2024-47408-e686@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=2811; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UzRQeTI7/95+tU7R0V20cG20/Y/NOqbYb5IBIg8v54Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNqfOW7nxaIDZrmUjNvujnpTo33rzVaxCbPXX7j/BNL Iujrzv5dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEPJ0Z5op0b4iwE5Or+lUT 9kmloNGc/YoQC8P8wDJZgx9Jn+/FB22v8av9Ff1H/845AA== 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 smcd_v2_ext_offset when receiving proposal msg When receiving proposal msg in server, the field smcd_v2_ext_offset in proposal msg is from the remote client and can not be fully trusted. Once the value of smcd_v2_ext_offset exceed the max value, there has the chance to access wrong address, and crash may happen. This patch checks the value of smcd_v2_ext_offset before using it. The Linux kernel CVE team has assigned CVE-2024-47408 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 5c21c4ccafe85906db809de3af391fd434df8a27 and fixed in 5.15.176 with commit a36364d8d4fabb105001f992fb8ff2d3546203d6 Issue introduced in 5.10 with commit 5c21c4ccafe85906db809de3af391fd434df8a27 and fixed in 6.1.122 with commit e1cc8be2a785a8f1ce1f597f3e608602c5fccd46 Issue introduced in 5.10 with commit 5c21c4ccafe85906db809de3af391fd434df8a27 and fixed in 6.6.68 with commit 935caf324b445fe73d7708fae6f7176fb243f357 Issue introduced in 5.10 with commit 5c21c4ccafe85906db809de3af391fd434df8a27 and fixed in 6.12.7 with commit 48d5a8a304a643613dab376a278f29d3e22f7c34 Issue introduced in 5.10 with commit 5c21c4ccafe85906db809de3af391fd434df8a27 and fixed in 6.13-rc4 with commit 9ab332deb671d8f7e66d82a2ff2b3f715bc3a4ad 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-47408 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.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/a36364d8d4fabb105001f992fb8ff2d3546203d6 https://git.kernel.org/stable/c/e1cc8be2a785a8f1ce1f597f3e608602c5fccd46 https://git.kernel.org/stable/c/935caf324b445fe73d7708fae6f7176fb243f357 https://git.kernel.org/stable/c/48d5a8a304a643613dab376a278f29d3e22f7c34 https://git.kernel.org/stable/c/9ab332deb671d8f7e66d82a2ff2b3f715bc3a4ad