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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-03-27T16:43:30.547Z
- Modified: 2026-06-17T06:44:04.960Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 before 8f0eb24f1a7a60ce635f0d757a46f1a37a4d467d; from 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 before 7f9828fb1f688210e681268490576f0ca65c322a; from 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 before ca3cf947760de050d558293002ad3e7f4b8745d2; from 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 before f9753ebd61be2d957b5504cbd3fd719674f05b7a; from 5f9ae3d9e7e4ad6db0491abc7c4ae5452dbeadd8 before 5e9398a26a92fc402d82ce1f97cc67d832527da0; 4.14 (not affected: before 4.14; from 5.4.231 up to 5.4.*; from 5.10.166 up to 5.10.*; from 5.15.91 up to 5.15.*; from 6.1.9 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 4.14 before 5.4.231; from 5.5 before 5.10.166; from 5.11 before 5.15.91; from 5.16 before 6.1.9; 6.2

## References

- <https://git.kernel.org/stable/c/8f0eb24f1a7a60ce635f0d757a46f1a37a4d467d> (patch)
- <https://git.kernel.org/stable/c/7f9828fb1f688210e681268490576f0ca65c322a> (patch)
- <https://git.kernel.org/stable/c/ca3cf947760de050d558293002ad3e7f4b8745d2> (patch)
- <https://git.kernel.org/stable/c/f9753ebd61be2d957b5504cbd3fd719674f05b7a> (patch)
- <https://git.kernel.org/stable/c/5e9398a26a92fc402d82ce1f97cc67d832527da0> (patch)

## Sources

- CVE List: [CVE-2023-52996](https://www.cve.org/CVERecord?id=CVE-2023-52996), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52996](https://nvd.nist.gov/vuln/detail/CVE-2023-52996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52996 · Whole record: https://cve.day/CVE-2023-52996.json · Rebuilt by cve.day 2026-11-25T22:58:34.593Z
