[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091504-CVE-2022-50264-3988@gregkh>
Date: Mon, 15 Sep 2025 16:21:06 +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-50264: clk: socfpga: Fix memory leak in socfpga_gate_init()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
clk: socfpga: Fix memory leak in socfpga_gate_init()
Free @socfpga_clk and @ops on the error path to avoid memory leak issue.
The Linux kernel CVE team has assigned CVE-2022-50264 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 5.4.229 with commit 6f2198914fb9aac286a6ff6cf09b23752141e04f
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 5.10.163 with commit 3e8fd1d0fab4d5c9a50d225dddc207deac12f13a
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 5.15.86 with commit 9de42116fc4540f6a1ceb51fd037b734ab7be12e
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 6.0.16 with commit 9f9bb9f5ba9fd501a90f255eb746b4cf2ceeaaae
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 6.1.2 with commit bd72ab5e6fc1c4d3e6b84636141d26a41b977b03
Issue introduced in 5.1 with commit a30a67be7b6e1117e0c0f5bcf84328ccdb8d6205 and fixed in 6.2 with commit 0b8ba891ad4d1ef6bfa4c72efc83f9f9f855f68b
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-50264
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/clk/socfpga/clk-gate.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/6f2198914fb9aac286a6ff6cf09b23752141e04f
https://git.kernel.org/stable/c/3e8fd1d0fab4d5c9a50d225dddc207deac12f13a
https://git.kernel.org/stable/c/9de42116fc4540f6a1ceb51fd037b734ab7be12e
https://git.kernel.org/stable/c/9f9bb9f5ba9fd501a90f255eb746b4cf2ceeaaae
https://git.kernel.org/stable/c/bd72ab5e6fc1c4d3e6b84636141d26a41b977b03
https://git.kernel.org/stable/c/0b8ba891ad4d1ef6bfa4c72efc83f9f9f855f68b
Powered by blists - more mailing lists