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 2331D1494DF for ; Thu, 27 Mar 2025 16:45: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=1743093934; cv=none; b=YYx/S1qTQFGlYRTarl4F3WbBh5Y4FhcaUFEWiKUQcFaTV5Ck9CPT0aVaNSiwlOkt3X/yqQXN06hR6vZAxm/DeUQsiYCzBNwhglE8aQRjepKJPJNzZd0aMMrusRryXAvr+g3Nn/yPMEBLI62eZnE2KIwGPn/S7F7CTW7WtIVhCQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093934; c=relaxed/simple; bh=sTgjJUYQzXS9UPayeWT2agmCiZZGS5QdBOUVcXOIfFk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xy4b93hKkqP4lCAuMOgJpZx9ao71+B5fcBOHiQSKWDgdywdr8foYQtntz43P5qbUkmGfmduFIiXPCBOVqkheho+UXXMrWmrf/I3H+EfX1XYRMOraAbrM3jy4WOFpfes5GEhV6eWz+9R7oIoNMyv4qK6pbwdNRL3Vpj3jiugpQZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uyIAxPfV; 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="uyIAxPfV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86A5BC4CEDD; Thu, 27 Mar 2025 16:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093934; bh=sTgjJUYQzXS9UPayeWT2agmCiZZGS5QdBOUVcXOIfFk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uyIAxPfVxgtv2tMpCSLC2k03ywL9gUCDDGl1DMnJEL9RSu9/3evG0bxQT6iMwEqcl 8XSA3eEAtF1TjtfJL8HAaWoQEaJ0D/SMBDbTK5BajcdiFd9q6NyzjssRV9tegahJCi R1FnIzQeKZXiUidZohEyiLEqou5c/3avQQ+HA2fI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52997: ipv4: prevent potential spectre v1 gadget in ip_metrics_convert() Date: Thu, 27 Mar 2025 17:43:44 +0100 Message-ID: <2025032710-CVE-2023-52997-dbca@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=2889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sTgjJUYQzXS9UPayeWT2agmCiZZGS5QdBOUVcXOIfFk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG+TV8kR/PVhx4UuIVJB46quwvV1XpJ/cnGjfs2HD3 DNdU/oWdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFmkyLJigcdpE1L/gc0yn yKSTh7TXfslw+cGwYJ44i72p956qDe1zpfNkLH7tTZ5UDAA= 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 ip_metrics_convert() if (!type) continue; if (type > RTAX_MAX) return -EINVAL; ... metrics[type - 1] = val; @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-52997 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 4.19.272 with commit ef050cf5fb70d995a0d03244e25179b7c66a924a Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 5.4.231 with commit 746db9ec1e672eee13965625ddac0d97e16fa20c Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 5.10.166 with commit 34c6142f0df9cd75cba5a7aa9df0960d2854b415 Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 5.15.91 with commit d50e7348b44f1e046121ff5be01b7fb6978a1149 Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 6.1.9 with commit 6850fe301d015a7d2012d1de8caf43dafb7cc2f6 Issue introduced in 4.3 with commit 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 and fixed in 6.2 with commit 1d1d63b612801b3f0a39b7d4467cad0abd60e5c8 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-52997 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/metrics.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/ef050cf5fb70d995a0d03244e25179b7c66a924a https://git.kernel.org/stable/c/746db9ec1e672eee13965625ddac0d97e16fa20c https://git.kernel.org/stable/c/34c6142f0df9cd75cba5a7aa9df0960d2854b415 https://git.kernel.org/stable/c/d50e7348b44f1e046121ff5be01b7fb6978a1149 https://git.kernel.org/stable/c/6850fe301d015a7d2012d1de8caf43dafb7cc2f6 https://git.kernel.org/stable/c/1d1d63b612801b3f0a39b7d4467cad0abd60e5c8