net: hns3: add VLAN id validation before using
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fe4144d47eef8453459c53a34e9d5940a3e6c219 · < 91a51d01be5c9f82c12c2921ca5cceaa31b67128| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: add VLAN id validation before using
Currently, the VLAN id may be used without validation when receive a VLAN configuration mailbox from VF. The length of vlan_del_fail_bmap is BITS_TO_LONGS(VLAN_N_VID). It may cause out-of-bounds memory access once the VLAN id is bigger than or equal to VLAN_N_VID.
Therefore, VLAN id needs to be checked to ensure it is within the range of VLAN_N_VID.
From the CVE record · Linux
The Linux kernel's hns3 driver uses a VLAN ID from a VF configuration mailbox without validating it. A VLAN ID at or above VLAN_N_VID can cause out-of-bounds memory access when that mailbox is received.
Engineers running Linux kernels that include the hns3 driver should check whether their kernel is affected; affected versions were not specified.