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.
https://git.kernel.org/stable/c/f9753ebd61be2d957b5504cbd3fd719674f05b7a
https://git.kernel.org/stable/c/ca3cf947760de050d558293002ad3e7f4b8745d2
https://git.kernel.org/stable/c/8f0eb24f1a7a60ce635f0d757a46f1a37a4d467d
https://git.kernel.org/stable/c/7f9828fb1f688210e681268490576f0ca65c322a
https://git.kernel.org/stable/c/5e9398a26a92fc402d82ce1f97cc67d832527da0