CVE-2023-52996 ipv4: prevent potential spectre v1 gadget in fib_metrics_match()

Medium 5.5 Published Updated

A Spectre v1 gadget in the Linux kernel IPv4 routing code allows attackers to leak kernel memory contents via speculative execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-52996?

CVE-2023-52996 is a medium-severity vulnerability in Linux kernel, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2023-52996?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52996?

Apply the vendor's patch.

Is CVE-2023-52996 being exploited?

There is no known exploitation of CVE-2023-52996 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52996, DEBIAN-CVE-2023-52996, GHSA-f656-g9wf-2686, UBUNTU-CVE-2023-52996.

Is CVE-2023-52996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free