i40e: add validation for ring_len param
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd · < 05fe81fb9db20464fa532a3835dc8300d68a2f84| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i40e: add validation for ring_len param
The `ring_len` parameter provided by the virtual function (VF) is assigned directly to the hardware memory context (HMC) without any validation.
To address this, introduce an upper boundary check for both Tx and Rx queue lengths. The maximum number of descriptors supported by the hardware is 8k-32. Additionally, enforce alignment constraints: Tx rings must be a multiple of 8, and Rx rings must be a multiple of 32.
From the CVE record · Linux
The Linux kernel’s i40e driver assigned a virtual function’s ring_len parameter to the hardware memory context without validation. A party able to provide virtual-function queue parameters could supply a length exceeding the hardware limit or violating Tx or Rx alignment requirements. The input does not specify the resulting impact or whether authentication or user interaction is required.
Teams running Linux kernels with the i40e driver should check their kernel versions; affected versions were not provided.