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: <2025102206-CVE-2022-50557-7adc@gregkh>
Date: Wed, 22 Oct 2025 15:24:05 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50557: pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()

From: Greg Kroah-Hartman <gregkh@...nel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()

The thunderbay_add_functions() will free memory of thunderbay_funcs
when everything is ok, but thunderbay_funcs will not be freed when
thunderbay_add_functions() fails, then there will be a memory leak,
so we need to add kfree() when thunderbay_add_functions() fails to
fix it.

In addition, doing some cleaner works, moving kfree(funcs) from
thunderbay_add_functions() to thunderbay_build_functions().

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


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

	Issue introduced in 5.17 with commit 12422af8194df85243d68b11f8783de9d01e58dc and fixed in 6.0.16 with commit 3650943bab29d03ef147290451237713ed1942cd
	Issue introduced in 5.17 with commit 12422af8194df85243d68b11f8783de9d01e58dc and fixed in 6.1.2 with commit aae4846e8e49044cb51d0276bec2a3fc2d5cd8da
	Issue introduced in 5.17 with commit 12422af8194df85243d68b11f8783de9d01e58dc and fixed in 6.2 with commit 83e1bcaf8cef26edaaf2a6098ef760f563683483

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-50557
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:
	drivers/pinctrl/pinctrl-thunderbay.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/3650943bab29d03ef147290451237713ed1942cd
	https://git.kernel.org/stable/c/aae4846e8e49044cb51d0276bec2a3fc2d5cd8da
	https://git.kernel.org/stable/c/83e1bcaf8cef26edaaf2a6098ef760f563683483

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ