# CVE-2023-52997: ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()

- 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:31.164Z
- Modified: 2026-11-05T21:17:06.607Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before ef050cf5fb70d995a0d03244e25179b7c66a924a; from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before 746db9ec1e672eee13965625ddac0d97e16fa20c; from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before 34c6142f0df9cd75cba5a7aa9df0960d2854b415; from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before d50e7348b44f1e046121ff5be01b7fb6978a1149; from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before 6850fe301d015a7d2012d1de8caf43dafb7cc2f6; from 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 before 1d1d63b612801b3f0a39b7d4467cad0abd60e5c8; 4.3 (not affected: before 4.3; from 4.19.272 up to 4.19.*; 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.3 before 4.19.272; from 4.20 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/ef050cf5fb70d995a0d03244e25179b7c66a924a> (patch)
- <https://git.kernel.org/stable/c/746db9ec1e672eee13965625ddac0d97e16fa20c> (patch)
- <https://git.kernel.org/stable/c/34c6142f0df9cd75cba5a7aa9df0960d2854b415> (patch)
- <https://git.kernel.org/stable/c/d50e7348b44f1e046121ff5be01b7fb6978a1149> (patch)
- <https://git.kernel.org/stable/c/6850fe301d015a7d2012d1de8caf43dafb7cc2f6> (patch)
- <https://git.kernel.org/stable/c/1d1d63b612801b3f0a39b7d4467cad0abd60e5c8> (patch)

## Sources

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

---

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