CVE-2022-50837

net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 328621f6131f667c5c328bb72d45442fd76efb81 to before 09f30f394e832ed09859b6a80fdd20668a9104ffAffected
  • 328621f6131f667c5c328bb72d45442fd76efb81 to before 39691d51af99f80efb9e365f94b8e0c791fa1a2fAffected
  • 328621f6131f667c5c328bb72d45442fd76efb81 to before 14ed46a13aba42a6ddd85de6f6274090df3586a5Affected
  • 328621f6131f667c5c328bb72d45442fd76efb81 to before e095493091e850d5292ad01d8fbf5cde1d89ac53Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.