net: hns3: void array out of bound when loop tnl_num
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: void array out of bound when loop tnl_num
When query reg inf of SSU, it loops tnl_num times. However, tnl_num comes from hardware and the length of array is a fixed value. To void array out of bound, make sure the loop time is not greater than the length of array
From the CVE record · Linux
The Linux kernel’s hns3 driver can access an array out of bounds while querying SSU register information if a hardware-provided loop count exceeds the array length. The input does not establish an attacker-controlled path or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the hns3 driver should check their affected versions; no version range is provided.