ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6cf9dfd3bd62edfff69f11c0f111bc261166e4c7 · < 1d1d63b612801b3f0a39b7d4467cad0abd60e5c8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ip_metrics_convert() function may allow speculative execution to use an array index before its bounds check takes effect, risking disclosure of kernel memory. The input does not specify how an attacker could reach the vulnerable code, whether authentication or user interaction is required, or whether exploitation is local or remote.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.