# CVE-2022-50837: net: dsa: tag\_8021q: avoid leaking ctx on dsa\_tag\_8021q\_register() error path

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2025-12-30 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2022-50837, DEBIAN-CVE-2022-50837
- Record: https://cvemate.com/vulnerability/CVE-2022-50837 · JSON: https://cvemate.com/vulnerability/CVE-2022-50837/json

## Description

```text
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.
```

## Signals

- CVSS: none published
- EPSS: 0.255%, percentile 18.151%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 107)

- debian linux (Debian): \< 6.1.4-1
- ubuntu linux (Ubuntu): \< 5.15.0-69.76
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1033.37
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1033.37~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1035.42
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1035.42~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/09f30f394e832ed09859b6a80fdd20668a9104ff>
- <https://git.kernel.org/stable/c/39691d51af99f80efb9e365f94b8e0c791fa1a2f>
- <https://git.kernel.org/stable/c/14ed46a13aba42a6ddd85de6f6274090df3586a5>
- <https://git.kernel.org/stable/c/e095493091e850d5292ad01d8fbf5cde1d89ac53>
- <https://ubuntu.com/security/CVE-2022-50837>
- <https://www.cve.org/CVERecord?id=CVE-2022-50837>
- <https://git.kernel.org/linus/e095493091e850d5292ad01d8fbf5cde1d89ac53>
- <https://security-tracker.debian.org/tracker/CVE-2022-50837>

---

Data as of 2026-12-05T04:41:26.988Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
