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 2FE9D1C6889 for ; Thu, 27 Mar 2025 16:43:59 +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=1743093839; cv=none; b=JzXQeYPF1x5sIm1UM5P+sYigcdG87zcsIHPFXrNX9GF3i9a0t+Ktd58kdScjSGjNh1kt0rpUS1HaA9DYBaSuAaqpnAGmCpxB6XWDEOIt0LMDHMUj5JZ9Jj1JRJkHqzrw394pTyTr80E2N3u6P2fvSoqjGePbLhtO9/Z31irDKZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093839; c=relaxed/simple; bh=o5m0EvX2FLC/yWpTzWwYfmstDaH59pqdwpaQLUYR7Xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rm2R1b7XMgqrfeMGlW8kvwi5AWib7HxivdYHMtnYfT0tRVl4qGDK9uC7ty3zmIfGj8TWjGy+Gdo1SG9nnLabPecEQrRcjrksslfbsXKv+tt4Suf7re7EuG+1wuyKS5+ZfSomanil41LoLB07vW5Xkxf+F4QDXVTuVH4wApotrxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GMXxXiSs; 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="GMXxXiSs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B38B1C4CEE5; Thu, 27 Mar 2025 16:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093839; bh=o5m0EvX2FLC/yWpTzWwYfmstDaH59pqdwpaQLUYR7Xs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GMXxXiSstr4n5IaA7zza91zRwBKjwGW8LeT/QGvmAlgqTkT+pQyvkCSLIDEYTDFuK Fk9PcPvGriqOloKD1bJGYKCaLNywTrDUixiHtq5vFHW3B4lpaAkYcWBCQC/xU5Ut8s RMbZ1NPSWFeFWhakewUoyFlEz+ZPE5C37F6+qxKI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49757: EDAC/highbank: Fix memory leak in highbank_mc_probe() Date: Thu, 27 Mar 2025 17:43:15 +0100 Message-ID: <2025032702-CVE-2022-49757-a990@gregkh> X-Mailer: git-send-email 2.49.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=3122; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=o5m0EvX2FLC/yWpTzWwYfmstDaH59pqdwpaQLUYR7Xs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG8SsxZjcOV4xOTn18X6I6VitrpfioZg+/cRaf3HdG 8dbu0w6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCL7rjAsOBIqsWNb05o1T/4e SbjDccba/VhhD8P88tOHb/13v7h6D0Nmx7NdfhflHnZdBwA= 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: EDAC/highbank: Fix memory leak in highbank_mc_probe() When devres_open_group() fails, it returns -ENOMEM without freeing memory allocated by edac_mc_alloc(). Call edac_mc_free() on the error handling path to avoid a memory leak. [ bp: Massage commit message. ] The Linux kernel CVE team has assigned CVE-2022-49757 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 4.14.305 with commit f1b3e23ed8df87d779ee86ac37f379e79a24169a Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 4.19.272 with commit 0db40e23b56d217eebd385bebb64057ef764b2c7 Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 5.4.231 with commit 8d23f5d25264beb223ee79cdb530b88c237719fc Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 5.10.166 with commit 329fbd260352a7b9a83781d8b8bd96f95844a51f Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 5.15.91 with commit caffa7fed1397d1395052272c93900176de86557 Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 6.1.9 with commit b7863ef8a8f0fee96b4eb41211f4918c0e047253 Issue introduced in 3.6 with commit a1b01edb274518c7da6d69b84e7558c092282aad and fixed in 6.2 with commit e7a293658c20a7945014570e1921bf7d25d68a36 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-49757 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/edac/highbank_mc_edac.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/f1b3e23ed8df87d779ee86ac37f379e79a24169a https://git.kernel.org/stable/c/0db40e23b56d217eebd385bebb64057ef764b2c7 https://git.kernel.org/stable/c/8d23f5d25264beb223ee79cdb530b88c237719fc https://git.kernel.org/stable/c/329fbd260352a7b9a83781d8b8bd96f95844a51f https://git.kernel.org/stable/c/caffa7fed1397d1395052272c93900176de86557 https://git.kernel.org/stable/c/b7863ef8a8f0fee96b4eb41211f4918c0e047253 https://git.kernel.org/stable/c/e7a293658c20a7945014570e1921bf7d25d68a36