ipv4: prevent potential spectre v1 gadget in fib_metrics_match()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s IPv4 fib_metrics_match() function may allow speculative execution to use an unchecked array index, risking disclosure of kernel memory. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their affected versions; the input does not identify specific versions.