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 D3FE91494DF for ; Thu, 27 Mar 2025 16:45:30 +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=1743093930; cv=none; b=NLHj7YBr1BlnATxvTnwKTJNdIZA3sYotzTIDIYygrRdE4jPbgqih36pIHnt8VbXShdwiSPCuO41esjT6vpkzYVCqypqWVjq/r3edNsAKQdKnqadK2pt6WTU7HUCZJzjIyv1zvZmGmV8aIvnmVfM8mHXHqIUsqJ8jpnG167YMaSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093930; c=relaxed/simple; bh=/I3bOmPzmWjhhJcBqKtfmBnLCzIG8oN7TQ5EwMzElRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SmC5TL1zdxdKb5BsOvvFthhcq78DO128Z3lir8GUQaJsUEgvAlaUyq+MJ0yERNPFE7BGKbTymWGNjX2YNXG2keUQfUzW+FFPzQxYvwS4jaZnAe/Z2lghyxEtQ3bTttxdBXspr5naZstxA602mN/wfqwfoEQ246szt5+viphX3OI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VcSHWGjs; 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="VcSHWGjs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5240DC4CEDD; Thu, 27 Mar 2025 16:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093930; bh=/I3bOmPzmWjhhJcBqKtfmBnLCzIG8oN7TQ5EwMzElRQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VcSHWGjsXGOW5QKNwXFSclHx6Up48MGTP5tys4jVZMJIbay5EvCVbsoA2s3/q5DNL GUpKXlIamgizHTY7KiMjteCEtaYszbyZMNvMyTCOnhS+I7kNSWRvPLPIfjPS8s72nL 4XkmitSIG8OLs77fLs7eBrFqV4Lc5ZGDefClxv1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52996: ipv4: prevent potential spectre v1 gadget in fib_metrics_match() Date: Thu, 27 Mar 2025 17:43:43 +0100 Message-ID: <2025032710-CVE-2023-52996-7c1f@gregkh> X-Mailer: git-send-email 2.49.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=2709; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/I3bOmPzmWjhhJcBqKtfmBnLCzIG8oN7TQ5EwMzElRQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG+QOmhX9LpJxUT4pflun7NrM4lOMhtdD7urFxjnHx x2boXSxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby/QTDgp5kZlPXu1E/nq60 271m2yQO1eZXTgxz+B64K4Q6NomvOJUZIqg7wStj4+stAA== 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: ipv4: prevent potential spectre v1 gadget in fib_metrics_match() if (!type) continue; if (type > RTAX_MAX) return false; ... fi_val = fi->fib_metrics->metrics[type - 1]; @type being used as an array index, we need to prevent cpu speculation or risk leaking kernel memory content. The Linux kernel CVE team has assigned CVE-2023-52996 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 and fixed in 5.4.231 with commit 8f0eb24f1a7a60ce635f0d757a46f1a37a4d467d Issue introduced in 4.14 with commit 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 and fixed in 5.10.166 with commit 7f9828fb1f688210e681268490576f0ca65c322a Issue introduced in 4.14 with commit 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 and fixed in 5.15.91 with commit ca3cf947760de050d558293002ad3e7f4b8745d2 Issue introduced in 4.14 with commit 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 and fixed in 6.1.9 with commit f9753ebd61be2d957b5504cbd3fd719674f05b7a Issue introduced in 4.14 with commit 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 and fixed in 6.2 with commit 5e9398a26a92fc402d82ce1f97cc67d832527da0 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-52996 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/ipv4/fib_semantics.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/8f0eb24f1a7a60ce635f0d757a46f1a37a4d467d https://git.kernel.org/stable/c/7f9828fb1f688210e681268490576f0ca65c322a https://git.kernel.org/stable/c/ca3cf947760de050d558293002ad3e7f4b8745d2 https://git.kernel.org/stable/c/f9753ebd61be2d957b5504cbd3fd719674f05b7a https://git.kernel.org/stable/c/5e9398a26a92fc402d82ce1f97cc67d832527da0