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 27D3620E6F0 for ; Wed, 26 Feb 2025 02:01:42 +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=1740535302; cv=none; b=VXDjh6gY9U9SbWaq4NDn8caw3Dd0W9062R83gbV3AEHoqGhcp2CQnkpgqVD5shQ/RT1c+ecdFdaX/95AzTu83zARZHYhA2mzonHyL9l0Vj3PMcFQR+QBADWVrSw4HUXCrbNMtegdXyc9YtwIiIgBXSxU4fLVGGUo4XkD70xH+PE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535302; c=relaxed/simple; bh=B61xAqg7zqv9hGZs2W98Vafd6CDRmBbcYZPxgYdbUbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MT6bGeXk/b0uR/71ougWMfnEwUa9ARXDkM2+1V2tPtjJ9woMSaXw9uhurlL+PLXNve2ccbkilHiW+y0bRHvu4zungLQSM94kdB4RxlvuKcLquu+4UDIsYW1lbv1vcU/6IQD88lk8AK58vfa8zGLqbcJB+AVgfz7nE7w4Gcly7Ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M0W3kq1Z; 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="M0W3kq1Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEA99C4CEDD; Wed, 26 Feb 2025 02:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535302; bh=B61xAqg7zqv9hGZs2W98Vafd6CDRmBbcYZPxgYdbUbk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=M0W3kq1ZUh6yLr4SAtYhhhQUyMva3Lzhe8AZ8o/XCG+4gB0HwC5qigRx8bgfFSKOl elyYTZgoHZLzz8Pn4GSmUDfxIU7e+3+E1m9Ilq+H6y8dJL4YTDyCw5qwCeyiEqmJCg zeCNAXf4r2/DTPlIpK4MIc2IMudesDLMaH2e4Se8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47658: drm/amd/pm: fix a potential gpu_metrics_table memory leak Date: Wed, 26 Feb 2025 03:00:25 +0100 Message-ID: <2025022624-CVE-2021-47658-3eb0@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=1689; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B61xAqg7zqv9hGZs2W98Vafd6CDRmBbcYZPxgYdbUbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sndoxn9pY063b2tO58je35654L8679EkbTWzkG8/P 6r4P1nTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJO8+wYMmMJ4Gzvmm6fnmX OdswS2/mxVWNbxnmabQX/+KPktGrWLNyz60nSyabfHu4EwA= 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: drm/amd/pm: fix a potential gpu_metrics_table memory leak Memory is allocated for gpu_metrics_table in renoir_init_smc_tables(), but not freed in int smu_v12_0_fini_smc_tables(). Free it! The Linux kernel CVE team has assigned CVE-2021-47658 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 95868b85764aff2dcbf78d3054076df75446ad15 and fixed in 5.17 with commit 583637d66a70fc7090e12fb0ebbacc33d39e2214 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-2021-47658 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/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.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/583637d66a70fc7090e12fb0ebbacc33d39e2214