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 0DF792E2657 for ; Wed, 1 Oct 2025 11:55:57 +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=1759319757; cv=none; b=Y1PzNzStILYzGY3BcXhiC8HQLIqPNzr9BUcADt/O7N+dKZOvmEYVPH7TTc/K+l0d+V2jby6PF64NA71a9bwHLhILX8MimMJmzs2f667m6yq8tCHlMFgHolgEFV/Pfe3I9voJ0lxucceICo3jhNpLsBTfw5zEwYwlmj/FMa1VoN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319757; c=relaxed/simple; bh=zpZayyzDMiCRK4f8/SdSTxYFqvlP2xGlOrEZhLNo9kg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VT5hhEjufQlhstOGyebybvHtkNZOnpc428KFigJY0QgFyPL+o1Li+amiq2Tc3odRlcsWIHCUTBH7gwHSCeqh3zYeOF2bD1BaMLTs24HPRH9jAEkYmrVBTCaWrz2NtF7r6AZ7jO/IfQcfER59l8Ih/AiUVwn2e6NJQhf8ZqoKlSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rOkkv7ji; 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="rOkkv7ji" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D4E3C4CEF4; Wed, 1 Oct 2025 11:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319756; bh=zpZayyzDMiCRK4f8/SdSTxYFqvlP2xGlOrEZhLNo9kg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rOkkv7jirmeeF6lwBSTe4yCEBj952QrRg5OgNN2UC1fzGL3L+B3lqXOJbh6hrrjqD ZCJGOyBvbsuxm6QBJLagzlO7btm4nwUSSWOIiWrxcqedrrfKsos2yLYCDTghS7pTUB QAmqprdIzI8aGhlKow3lJYbqeFSt99HjtUWs2Uio= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50449: clk: samsung: Fix memory leak in _samsung_clk_register_pll() Date: Wed, 1 Oct 2025 13:45:19 +0200 Message-ID: <2025100116-CVE-2022-50449-214c@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=3316; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sNvYuHaSKGAq6zQi53ph2DTZHy0hfw/g4xtz5v1tjS4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RXz2XT6dZOjBqRQRoHJ4w3n/31LKB7jP1HgtecbDK bNPkP1DRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk9DHDgpkhHzjXPd+w4pAK t1ntcnf5GfP7xRgWbI3n3vioYLnkzsJd/hJlHBLZN17PAAA= 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: samsung: Fix memory leak in _samsung_clk_register_pll() If clk_register() fails, @pll->rate_table may have allocated memory by kmemdup(), so it needs to be freed, otherwise will cause memory leak issue, this patch fixes it. The Linux kernel CVE team has assigned CVE-2022-50449 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 4.14.303 with commit 7b738276a596fa101d320591e9fa84ea0fc3f713 Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 4.19.270 with commit 2e8dc0626fe86ae08914478dec1419618c557bc0 Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 5.4.229 with commit a00b4e0fa27317957536abf8f5d6a96d6cb9d9be Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 5.10.163 with commit da13355bb9961316d124f94dfc7a1385d0fb035a Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 5.15.86 with commit 4e501a31af8efa593a2f003637b56d00b75dca23 Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 6.0.16 with commit 4887ec922e407b4feaf060c7b099482a5c52dee3 Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 6.1.2 with commit a35323218ff32782d051d2643912311a22e07b6a Issue introduced in 3.12 with commit 3ff6e0d8d64d594a551b5c4904e4b617bf7eee22 and fixed in 6.2 with commit 5174e5b0d1b669a489524192b6adcbb3c54ebc72 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-50449 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/samsung/clk-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/7b738276a596fa101d320591e9fa84ea0fc3f713 https://git.kernel.org/stable/c/2e8dc0626fe86ae08914478dec1419618c557bc0 https://git.kernel.org/stable/c/a00b4e0fa27317957536abf8f5d6a96d6cb9d9be https://git.kernel.org/stable/c/da13355bb9961316d124f94dfc7a1385d0fb035a https://git.kernel.org/stable/c/4e501a31af8efa593a2f003637b56d00b75dca23 https://git.kernel.org/stable/c/4887ec922e407b4feaf060c7b099482a5c52dee3 https://git.kernel.org/stable/c/a35323218ff32782d051d2643912311a22e07b6a https://git.kernel.org/stable/c/5174e5b0d1b669a489524192b6adcbb3c54ebc72