net: hns3: add vlan list lock to protect vlan list
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: add vlan list lock to protect vlan list
When adding port base VLAN, vf VLAN need to remove from HW and modify the vlan state in vf VLAN list as false. If the periodicity task is freeing the same node, it may cause "use after free" error. This patch adds a vlan list lock to protect the vlan list.
From the CVE record · Linux
The Linux kernel's hns3 driver has a use-after-free vulnerability in its VLAN list. It can occur when adding a port-based VLAN while a periodic task frees the same VF VLAN list node. The input does not specify an attacker access path or authentication requirements.
Engineers running Linux kernels with the hns3 driver should check their systems; affected versions are not specified.