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 A0EB31A2381 for ; Wed, 26 Feb 2025 01:57:36 +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=1740535056; cv=none; b=OwVcdnQgmzSicUApZs+xvemGt1DRslqoXPJ5+pNcpUe1ZbIo4jVicrkGrsjxwGpNAfDQI1whXVyl3AyVk48ve1n04ejJ5HJlIuSsIGnZ4B0cTYoZ+2LhmjzrF3Sci00lat5xQzjCBPOn65V6O0psFXj4apQkly4FzSTcg5RvQww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535056; c=relaxed/simple; bh=aRy9sAA0VPpyVJWmzjrX3t2/2sBzYy1C+glWbY7orfY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AV3IRFKTJdSkROx34h0ya4hw5oW+uCGrq6soGDQmUr8KNHl1Oasu1bDQf880aVEfnHwA/gJTxP4FOXU4ciOxZsg7cNfWl37K3SOAFMJ6KvfW8k81u+0uJvx32gpsllf6SldvYsPVyFSElDwSZ+g8q8RP8cIF9ts45FtGIq+ldBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bQ/QQ5v2; 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="bQ/QQ5v2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CDD9C4CEDD; Wed, 26 Feb 2025 01:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535056; bh=aRy9sAA0VPpyVJWmzjrX3t2/2sBzYy1C+glWbY7orfY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bQ/QQ5v2nU9BirxI2uK2rxjX1QlfBpgn5UaW3p6mpFTtuZ02zIEGgyfRmdE9jy1xS XresT00jmsCFABHp8XQhBT3uRl2s49ES9Ev9Caf5ITIHZzaxprrFQAk3rhypbgmr76 pPT/LDaFdcTnwC06WxU5olDYVtg8BFODXrMXKgSw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49047: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate() Date: Wed, 26 Feb 2025 02:54:12 +0100 Message-ID: <2025022651-CVE-2022-49047-fbc3@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=2144; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aRy9sAA0VPpyVJWmzjrX3t2/2sBzYy1C+glWbY7orfY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvTfft85w1zx/cEPHQesq9qTJhmfMA4oWTz14t3+E 84TSt+5dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE2qczzI9iPti2aHvnjizb /+IrHzo/E7cVV2RYcHQq2/va+Clr7yzhkPR7/P7ErmKX6QA= 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: ep93xx: clock: Fix UAF in ep93xx_clk_register_gate() arch/arm/mach-ep93xx/clock.c:154:2: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc] arch/arm/mach-ep93xx/clock.c:151:2: note: Taking true branch if (IS_ERR(clk)) ^ arch/arm/mach-ep93xx/clock.c:152:3: note: Memory is released kfree(psc); ^~~~~~~~~~ arch/arm/mach-ep93xx/clock.c:154:2: note: Use of memory after it is freed return &psc->hw; ^ ~~~~~~~~ The Linux kernel CVE team has assigned CVE-2022-49047 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 and fixed in 5.17.4 with commit 0f12166872da46c6b57ba2f1314bbf310b3bf017 Issue introduced in 5.16 with commit 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 and fixed in 5.18 with commit 3b68b08885217abd9c57ff9b3bb3eb173eee02a9 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-49047 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: arch/arm/mach-ep93xx/clock.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/0f12166872da46c6b57ba2f1314bbf310b3bf017 https://git.kernel.org/stable/c/3b68b08885217abd9c57ff9b3bb3eb173eee02a9