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 E4539344057 for ; Wed, 24 Dec 2025 13:09:37 +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=1766581778; cv=none; b=eoYfEMDpk7BNdCzJlM8JL9gYNmVU5u/NM3Ad2qx7Qhn5D8Q6HlP34RMgkkiJnrRAwnkU6cjrrnT58AcZArWvp70vbOKbfKwNtjsu5Bbq6PNh/6lupv3GGS1qtAC3bWugXVZowcLiyKMQjv2as+ut4+wii7BwN1MCLFjy75jn+8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581778; c=relaxed/simple; bh=gazttDzqbkvVklCjOM9wZ1ZlChsXsc2EMBlXzvEYRuw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KUZMhamGudkVxJeeedVL+WBXb0J0fYApyda/8cZruPc9s+PAtOqHuySwulqkM57L4wKNrlw4h+sJaYS8rf9kcuQuHO660wzi7isfuPBzhFFgXnyZQISqELj8b3xl82TBP0d7HA9A8LmbjIsyGpT1JUXHAPncKmd4En/suQv9a0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=idGjhnFe; 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="idGjhnFe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C09FC4CEFB; Wed, 24 Dec 2025 13:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581777; bh=gazttDzqbkvVklCjOM9wZ1ZlChsXsc2EMBlXzvEYRuw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=idGjhnFenDdqp1n/17zhgSlMqE26haTiPE1IsDCAINLLTOQ5NxdwiZV0blTPouYzE bOx3nnpj47IG5TbZvfuFtSDweaofyou8GUc2uOC5fgvQye+660tzElmZ0zbZz4Tz6V EOp8dWUjhsA+UPFFv5xMpBowsQzjtx8kbrlh32dc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50776: clk: st: Fix memory leak in st_of_quadfs_setup() Date: Wed, 24 Dec 2025 14:06:27 +0100 Message-ID: <2025122400-CVE-2022-50776-f275@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=2756; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HhXAka/M3VScja11/LKJPuDo3uXW0IhcXHmBEHn9dVo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTy1EJ8cuMQiMu335wsWzZ1avveJwm1nu+YHS1etfC 3Z7bjfV74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPPrDMN8x5j/vis2HPjn6 TU9MEo7pbtkaUM8wh3/f1S0/1glvZlZV0fne48Sic2rCbAA= 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: st: Fix memory leak in st_of_quadfs_setup() If st_clk_register_quadfs_pll() fails, @lock should be freed before goto @err_exit, otherwise will cause meory leak issue, fix it. The Linux kernel CVE team has assigned CVE-2022-50776 to this issue. Affected and fixed versions =========================== Fixed in 4.9.337 with commit 081538ae5817631a2b99e8e75cce981060aab29f Fixed in 4.14.303 with commit f0295209de457049a4a5f3e3985528391bd1ab34 Fixed in 4.19.270 with commit be03875007621fcee96e6f9fd7b9e59c8dfcf6fa Fixed in 5.4.229 with commit 713ad301c2d49e88fe586b57ebac8f220a98e162 Fixed in 5.10.163 with commit efd025f32fce27a8ada9bcb4731e8a84476e5b3d Fixed in 5.15.86 with commit adf6a00859d014cecf046dc91f75c0e65a544360 Fixed in 6.0.16 with commit 335ef7546c77e63154d6ea4d603b11274a85900e Fixed in 6.1.2 with commit f4731395d6db850127634197863aede188d8e9de Fixed in 6.2 with commit cfd3ffb36f0d566846163118651d868e607300ba 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-50776 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/st/clkgen-fsyn.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/081538ae5817631a2b99e8e75cce981060aab29f https://git.kernel.org/stable/c/f0295209de457049a4a5f3e3985528391bd1ab34 https://git.kernel.org/stable/c/be03875007621fcee96e6f9fd7b9e59c8dfcf6fa https://git.kernel.org/stable/c/713ad301c2d49e88fe586b57ebac8f220a98e162 https://git.kernel.org/stable/c/efd025f32fce27a8ada9bcb4731e8a84476e5b3d https://git.kernel.org/stable/c/adf6a00859d014cecf046dc91f75c0e65a544360 https://git.kernel.org/stable/c/335ef7546c77e63154d6ea4d603b11274a85900e https://git.kernel.org/stable/c/f4731395d6db850127634197863aede188d8e9de https://git.kernel.org/stable/c/cfd3ffb36f0d566846163118651d868e607300ba