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 D063C313277 for ; Wed, 24 Dec 2025 12:26:43 +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=1766579203; cv=none; b=Q87KoD4RwzLw7NWrqfrM0uxqc1nyshWznd8U+/8GHexg+2vasLfy6LQL32Es28KvdyC22g0sfUtxPZMVNqDddE4kjJ2yF5zvQsZ718aO1Kif75F8aPbTBq21VVsWMwOkZtD+GnuQnSQmwe7Kd6UvBBysahqZLVVAIuZJb1VnVk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579203; c=relaxed/simple; bh=GulNo3sKGnjUPcKrS0OBV7c2RN23PskegJSpwP1F3DM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o+iVRlkkjBmNXtaIuuBVLewj70UK3GnuqyS1FJ5ewMQ0n16yqmjYoOZPAtr2rdbj4GlE/H9iShpC1XEIJRFTUnFIQB2sKuNmHdq26fmwqBc/DTGrtvcxHEaK6y1Ge+a2wkgJom37ZUv7gDbIgTaER4b3TtJXbSws5gNkCPtHMvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0s3ZEPQs; 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="0s3ZEPQs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15D32C4CEFB; Wed, 24 Dec 2025 12:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579203; bh=GulNo3sKGnjUPcKrS0OBV7c2RN23PskegJSpwP1F3DM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=0s3ZEPQsvymm4duC/prsE5Vk3EkpwQJfAVWtUZy3kMgZz0lDLXAcUka6lQkLj2Zsg K5Mvz7j/PXMpqXsWjhTX4nneqiRDpDibCUp4W1nD6xKQP5d0PABL2j4lMT7HMrw9w+ zj8LyjJBojzNLQSj2+QMXZ+pKQ26L8gmNLW8hZe4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50713: clk: visconti: Fix memory leak in visconti_register_pll() Date: Wed, 24 Dec 2025 13:26:12 +0100 Message-ID: <2025122414-CVE-2022-50713-24cc@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2158; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JbwQw+g6Uz4u4tdQBa0hW+9jo0KWHMKYe+RfrF9yiQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet5+pmZ07u5O1780Th6aCqKjl12STJ654e6Lto13Vt n2NXu+fdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEthYyzJXheirK4ii3oGrl 9YqfG3zSf5230GNYsO+K6+0lRZk5Ijt4D8e8L/nh/0JbBQA= 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: visconti: Fix memory leak in visconti_register_pll() @pll->rate_table has allocated memory by kmemdup(), if clk_hw_register() fails, it should be freed, otherwise it will cause memory leak issue, this patch fixes it. The Linux kernel CVE team has assigned CVE-2022-50713 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa and fixed in 6.0.16 with commit 70af9bf13be1716eac452c8a29ce6fe6b957a5db Issue introduced in 5.17 with commit b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa and fixed in 6.1.2 with commit f0f1982ddfb418bf7bf05dadebae5c6869a41d41 Issue introduced in 5.17 with commit b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa and fixed in 6.2 with commit b55226f8553d255f5002c751c7c6ba9291f34bf2 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-50713 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/visconti/pll.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/70af9bf13be1716eac452c8a29ce6fe6b957a5db https://git.kernel.org/stable/c/f0f1982ddfb418bf7bf05dadebae5c6869a41d41 https://git.kernel.org/stable/c/b55226f8553d255f5002c751c7c6ba9291f34bf2