CVE-2023-52997

ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:43 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.20 ≤ v < 5.4.2314.3 ≤ v < 4.19.2724.3 ≤ v < 5.10.1664.3 ≤ v < 5.15.914.3 ≤ v < 5.4.2314.3 ≤ v < 6.1.94.3 ≤ v < 6.25.11 ≤ v < 5.15.915.16 ≤ v < 6.1.95.5 ≤ v < 5.10.1664.36.2 rc16.2 rc26.2 rc36.2 rc46.2 rc56cf9dfd3bd62edfff69f11c0f111bc261166e4c7
Vendor states this is fixed in 1d1d63b612801b3f0a39b7d4467cad0abd60e5c8 (fixed)
Vendor states this is fixed in 34c6142f0df9cd75cba5a7aa9df0960d2854b415 (fixed)
Vendor states this is fixed in 6850fe301d015a7d2012d1de8caf43dafb7cc2f6 (fixed)
Vendor states this is fixed in 746db9ec1e672eee13965625ddac0d97e16fa20c (fixed)
Vendor states this is fixed in d50e7348b44f1e046121ff5be01b7fb6978a1149 (fixed)
Vendor states this is fixed in ef050cf5fb70d995a0d03244e25179b7c66a924a (fixed)
Vendor states this is fixed in 4.19.272 (unaffected)
Vendor states this is fixed in 4.3 (unaffected)
Vendor states this is fixed in 5.10.166 (unaffected)
Vendor states this is fixed in 5.15.91 (unaffected)
Vendor states this is fixed in 5.4.231 (unaffected)
Vendor states this is fixed in 6.1.9 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d1d63b612801b3f0a39b7d4467cad0abd60e5c8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/34c6142f0df9cd75cba5a7aa9df0960d2854b415
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6850fe301d015a7d2012d1de8caf43dafb7cc2f6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/746db9ec1e672eee13965625ddac0d97e16fa20c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d50e7348b44f1e046121ff5be01b7fb6978a1149
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef050cf5fb70d995a0d03244e25179b7c66a924a

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card