[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025032710-CVE-2023-52997-dbca@gregkh>
Date: Thu, 27 Mar 2025 17:43:44 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2023-52997: ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
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
Powered by blists - more mailing lists