CVE-2022-50837
publishednet: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux328621f6131f667c5c328bb72d45442fd76efb81 to < 09f30f394e832ed09859b6a80fdd20668a9104ff · 328621f6131f667c5c328bb72d45442fd76efb81 to < 39691d51af99f80efb9e365f94b8e0c791fa1a2f · 328621f6131f667c5c328bb72d45442fd76efb81 to < 14ed46a13aba42a6ddd85de6f6274090df3586a5 · 328621f6131f667c5c328bb72d45442fd76efb81 to < e095493091e850d5292ad01d8fbf5cde1d89ac53 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.86 through 5.15.* (unaffected · semver) · 6.0.16 through 6.0.* (unaffected · semver) · 6.1.2 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 328621f6131f667c5c328bb72d45442fd76efb81 to < 09f30f394e832ed09859b6a80fdd20668a9104ff (affected · git)328621f6131f667c5c328bb72d45442fd76efb81 to < 39691d51af99f80efb9e365f94b8e0c791fa1a2f (affected · git)328621f6131f667c5c328bb72d45442fd76efb81 to < 14ed46a13aba42a6ddd85de6f6274090df3586a5 (affected · git)328621f6131f667c5c328bb72d45442fd76efb81 to < e095493091e850d5292ad01d8fbf5cde1d89ac53 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.86 through 5.15.* (unaffected · semver)6.0.16 through 6.0.* (unaffected · semver)6.1.2 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a0c3d40948a551894af5af04a180a33a2426ee36ed01aa50a3d30c859df6ad21
- Ingested
- 23 Sep 2026, 08:04:58 UTC
- Source record
- Official CVE record