net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path
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: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path
If dsa_tag_8021q_setup() fails, for example due to the inability of the device to install a VLAN, the tag_8021q context of the switch will leak. Make sure it is freed on the error path.
From the CVE record · Linux
The Linux kernel's DSA tag_8021q code can leak a switch context if setup fails, for example when a device cannot install a VLAN. The input does not describe how an attacker could trigger the failure or specify network, authentication, or user-interaction requirements.
Engineers running Linux kernel versions with the affected DSA tag_8021q code should check their exposure; no affected versions are specified.