Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECC1A313286 for ; Mon, 15 Sep 2025 14:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946140; cv=none; b=n4CUoUViOlC+ZUovC1MOK9jhXUvUbM0plYJn4vstL44XIvrzDaot5nx2Qt/7AjcAxu+aNeJtb2OPQlZc1KjhcmdCUzjuSiPIqE/15UOWCueSKx+d8LR5hRWkJRgADgE9R2lVsgg32qzeJ8++Yr1UMXuVrAgn7zQjuSS9dR539O4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946140; c=relaxed/simple; bh=MSZddplCa0cv3dsVVTFwraKFLp7fcXIIIM3ZDr/sR/Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZuOxQplfNL5XC4TH7B0AyZbC8zvWsLyxVaJpHSZP8IX8ETGdCIVzbdqYYd62a2DuvoN8FjcXUjJC0+9LZSJpXF+DLI0UvIH0VwHi2whl3+CzOerehCe+bF4qr0s3WXqjZTQUavyvaf2DDWGNsdvFQ6KAXY55s+PHdkSILlKziVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ijYcDU7P; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ijYcDU7P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 125FFC4CEF1; Mon, 15 Sep 2025 14:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946139; bh=MSZddplCa0cv3dsVVTFwraKFLp7fcXIIIM3ZDr/sR/Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ijYcDU7PFL8duI3BWBxAXviyqpQNgYGCnRmH2hq4sZLoT+iZ4u+NX48nE/oRpAQMr ELIddb6w6tp1BL2e3Zv+7w0jM8WfcPh+GeF44qUCDhMj8L/zDGmu+sO3DE/sh8BHyx pQEgS7dG7rK5fSs6XXe+cv2nSbfOXhQWTfqaL6+U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50264: clk: socfpga: Fix memory leak in socfpga_gate_init() Date: Mon, 15 Sep 2025 16:21:06 +0200 Message-ID: <2025091504-CVE-2022-50264-3988@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2746; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=60nBwZZWBny2Cmy/Y59XGpSYECbagxnZjKyOtXXTGkM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFC7URfdPlmc2mmXd9mBC0f7c3Kmd31JPJ9XPDfzov Z/zXFJLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkhjbDgibFePvQJTObEi08 ds9YWvQ8UfjfMoYFyys+6MU+vbhZYMLKqpPbzP9d6XuVBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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