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 B2BC61A5B95 for ; Wed, 26 Feb 2025 01:58:20 +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=1740535100; cv=none; b=UFw9QFuq29BlEWiBsjZJi63Q7+504Cv+jq52KCSKr5qEkukJB0sNNsQJAfmz5dyWMhfUAF+6AcLHt874y4yra/PCesbJVz77ja6J42FOWAjkBx4O1lQWHx/fmJb1LFFA1ZnADa5M8mwBbZJ+wo9oGvGPcDBINMzWlbmxm/558zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535100; c=relaxed/simple; bh=nwcxLw6STklS1y5Mhxi6mBchtOKwVHGE34yxofPdun8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ns0BwkQEAWaWrkHOb5aO5WcGlpn0wfqXsCoRi8HNAHBadFtv4geJjzYJ5ogTVAQ7NvwgmHOjWEW369SNGYKx7n0LsYHfs//pC3ls+Mkm5YTg2L3tl57Bj0H49kOfRqP0X+sB58EqlHq1/Ib/IXU4PLHORQBEjVhmrHobR7de+rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RQZHKIRf; 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="RQZHKIRf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87BADC4CEDD; Wed, 26 Feb 2025 01:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535100; bh=nwcxLw6STklS1y5Mhxi6mBchtOKwVHGE34yxofPdun8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RQZHKIRfiuvvQbYBIXPvjRh46DYlJ/w3NKIZrUcMsT2FCX9A1BM90LZ5qwb0t6/12 DJA8MsY4effMI8UAzoS97klr7HoQWbis64a9qeo+V93A7VFMKtynNgK9tLH4demruB cOvgTGFGLQ4x+WKSDz7LLTHOt6NKMDN9f10Plwic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49108: clk: mediatek: Fix memory leaks on probe Date: Wed, 26 Feb 2025 02:55:13 +0100 Message-ID: <2025022601-CVE-2022-49108-328f@gregkh> X-Mailer: git-send-email 2.48.1 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=1848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nwcxLw6STklS1y5Mhxi6mBchtOKwVHGE34yxofPdun8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SixVaoxcHs8qPF6qJX0lcM1DiSbj+N9NUydXX9hn8 a0j7O3kjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIeCrDgpl1Vq2s+UuUNE89 d23mfn99UwWDFsM8ZWvH4tvL46b6L9idt8WrWleueBMrAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: clk: mediatek: Fix memory leaks on probe Handle the error branches to free memory where required. Addresses-Coverity-ID: 1491825 ("Resource leak") The Linux kernel CVE team has assigned CVE-2022-49108 to this issue. Affected and fixed versions =========================== Fixed in 5.16.20 with commit c6a0b413398588fc2d8b174a79ea715b66413fca Fixed in 5.17.3 with commit 02742d1d5c95cff8b6e9379aae4ab12674f7265d Fixed in 5.18 with commit 7a688c91d3fd54c53e7a9edd6052cdae98dd99d8 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-49108 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/mediatek/clk-mt8192.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/c6a0b413398588fc2d8b174a79ea715b66413fca https://git.kernel.org/stable/c/02742d1d5c95cff8b6e9379aae4ab12674f7265d https://git.kernel.org/stable/c/7a688c91d3fd54c53e7a9edd6052cdae98dd99d8