Skip to content
Heist/ feed
Back to feed
UnratedFix available

ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.272, 5.10.166, 5.15.91, 5.4.231, 6.1.9
CVEs
CVE-2023-52997
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:49 UTC · Revision 1

Source evidence

ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()

core-osv · Original source

Published 27 Mar 2025, 16:43 UTC

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.

osv:CVE-2023-52997

Kernel

Fixed versions: 4.19.272, 5.4.231, 5.10.166, 5.15.91, 6.1.9

Complete source record
{
  "id": "04012dcea08c5a7da5fbf8bfb1a4347c0da9005b27e10d5d8e28a134e1d05277",
  "url": "https://osv.dev/vulnerability/CVE-2023-52997",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52997",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.272",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.231",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.166",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.91",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52997",
      "aliases": [
        "CVE-2023-52997"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6cf9dfd3bd62edfff69f11c0f111bc261166e4c7"
                },
                {
                  "fixed": "ef050cf5fb70d995a0d03244e25179b7c66a924a"
                },
                {
                  "fixed": "746db9ec1e672eee13965625ddac0d97e16fa20c"
                },
                {
                  "fixed": "34c6142f0df9cd75cba5a7aa9df0960d2854b415"
                },
                {
                  "fixed": "d50e7348b44f1e046121ff5be01b7fb6978a1149"
                },
                {
                  "fixed": "6850fe301d015a7d2012d1de8caf43dafb7cc2f6"
                },
                {
                  "fixed": "1d1d63b612801b3f0a39b7d4467cad0abd60e5c8"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52997.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.3.0"
                },
                {
                  "fixed": "4.19.272"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.231"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.166"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.91"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52997.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.206690211Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1d1d63b612801b3f0a39b7d4467cad0abd60e5c8",
        "https://git.kernel.org/stable/c/34c6142f0df9cd75cba5a7aa9df0960d2854b415",
        "https://git.kernel.org/stable/c/6850fe301d015a7d2012d1de8caf43dafb7cc2f6",
        "https://git.kernel.org/stable/c/746db9ec1e672eee13965625ddac0d97e16fa20c",
        "https://git.kernel.org/stable/c/d50e7348b44f1e046121ff5be01b7fb6978a1149",
        "https://git.kernel.org/stable/c/ef050cf5fb70d995a0d03244e25179b7c66a924a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52997.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52997",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52997.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52997",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 514003,
  "published_at": "2025-03-27T16:43:31.164+00:00"
}