octeontx2-af: CGX: add bounds check to cgx_speed_mbps index
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 61071a871ea6eb2125ece91c1a0dbb124a318c8a · < 47a4cf2229be379cf88f92e32e1240337cd6273f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: CGX: add bounds check to cgx_speed_mbps index
cgx_speed_mbps has 13 elements but RESP_LINKSTAT_SPEED can yield values 0-15. If it returns a value >= 13, this causes an out-of-bounds array access. Add a bounds check and default to speed 0 if the index is out of range.
From the CVE record · Linux
In the Linux kernel's octeontx2-af CGX code, a link-speed value of 13–15 can index past the end of the 13-element cgx_speed_mbps array. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with octeontx2-af CGX should check their systems; affected versions are not specified.