lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123018-CVE-2022-50837-c470@gregkh>
Date: Tue, 30 Dec 2025 13:13:23 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50837: net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path

From: Greg Kroah-Hartman <gregkh@...nel.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.

The Linux kernel CVE team has assigned CVE-2022-50837 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit 328621f6131f667c5c328bb72d45442fd76efb81 and fixed in 5.15.86 with commit 09f30f394e832ed09859b6a80fdd20668a9104ff
	Issue introduced in 5.15 with commit 328621f6131f667c5c328bb72d45442fd76efb81 and fixed in 6.0.16 with commit 39691d51af99f80efb9e365f94b8e0c791fa1a2f
	Issue introduced in 5.15 with commit 328621f6131f667c5c328bb72d45442fd76efb81 and fixed in 6.1.2 with commit 14ed46a13aba42a6ddd85de6f6274090df3586a5
	Issue introduced in 5.15 with commit 328621f6131f667c5c328bb72d45442fd76efb81 and fixed in 6.2 with commit e095493091e850d5292ad01d8fbf5cde1d89ac53

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2022-50837
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	net/dsa/tag_8021q.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ