{"id":"CVE-2023-52997","summary":"ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: prevent potential spectre v1 gadget in ip_metrics_convert()\n\nif (!type)\n\t\tcontinue;\n\tif (type \u003e RTAX_MAX)\n\t\treturn -EINVAL;\n\t...\n\tmetrics[type - 1] = val;\n\n@type being used as an array index, we need to prevent\ncpu speculation or risk leaking kernel memory content.","modified":"2026-03-20T12:32:54.236364Z","published":"2025-03-27T16:43:31.164Z","related":["SUSE-SU-2025:1293-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52997.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1d1d63b612801b3f0a39b7d4467cad0abd60e5c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/34c6142f0df9cd75cba5a7aa9df0960d2854b415"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6850fe301d015a7d2012d1de8caf43dafb7cc2f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/746db9ec1e672eee13965625ddac0d97e16fa20c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d50e7348b44f1e046121ff5be01b7fb6978a1149"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef050cf5fb70d995a0d03244e25179b7c66a924a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52997.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52997"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6cf9dfd3bd62edfff69f11c0f111bc261166e4c7"},{"fixed":"ef050cf5fb70d995a0d03244e25179b7c66a924a"},{"fixed":"746db9ec1e672eee13965625ddac0d97e16fa20c"},{"fixed":"34c6142f0df9cd75cba5a7aa9df0960d2854b415"},{"fixed":"d50e7348b44f1e046121ff5be01b7fb6978a1149"},{"fixed":"6850fe301d015a7d2012d1de8caf43dafb7cc2f6"},{"fixed":"1d1d63b612801b3f0a39b7d4467cad0abd60e5c8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52997.json"}}],"schema_version":"1.7.5"}