net: bridge: vlan: fix bugs caused by switchdev deletion errors
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: bridge: vlan: fix bugs caused by switchdev deletion errors
Allowing switchdev to prevent vlan deletion and error out in __vlan_del could cause multiple different issues - inconsistent state, memory leaks when flushing, NULL pointer dereference on bridge error when flushing. It doesn't make sense to allow it to stop __vlan_del, so log the error and continue with software vlan deletion. This is also consistent with 8021q behaviour.
From the CVE record · Linux
The Linux kernel bridge VLAN code could let a switchdev deletion error stop software VLAN deletion. This can cause inconsistent state, memory leaks during flushing, or a NULL pointer dereference on a bridge error during flushing. The input does not specify attacker access or user-interaction requirements.
Engineers running the Linux kernel should check their affected versions; no version range is provided.