{"schema_version":"1.9.0","id":"CVE-2023-52997","published":"2025-03-27T16:43:31.164Z","modified":"2026-08-12T03:51:41.036533839Z","related":["SUSE-SU-2025:1293-1"],"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 > 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.","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/cve-osv-conversion/osv-output/CVE-2023-52997.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52997.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52997.json"}}