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 281601D6195 for ; Mon, 8 Dec 2025 01:17:29 +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=1765156649; cv=none; b=dWjqdep8eA5v/WNo1JfJ5WJCigi5lqngkchsmGS/BQjLyyodRmu+jAE5wFKwoA57hUrYpmH3kJh+bsXq5YqxgYKgGlfBwTo54Bb/UZSh2OYxDfFX4IeVlFj9QyTEZLD+tGzV6//Z8yDtj3815T/SzMjFpFvzyTungMw2jtLy5j4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765156649; c=relaxed/simple; bh=lVO+NMPXCV0Syoiijx7evcdmS31hITxEL0318rHTNbQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WYTBcmPoHbwqdYM/2rHbKMHFOMfv3iCjEclmjyYAPBnc6sEM2398elZWjgaJm4kT7bR02BIIzReOYvx6KU2808jt08yFRAQm40qrkmFGlmO9zPOUi5d8habUu3208NXkOF/ZlcE+0kzOsIYcrNTSq/mYZrqjHWoI0tUpoWX1430= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AGSci2eP; 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="AGSci2eP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA632C4CEFB; Mon, 8 Dec 2025 01:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765156649; bh=lVO+NMPXCV0Syoiijx7evcdmS31hITxEL0318rHTNbQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=AGSci2ePmrTM5TJye307J94BOl2NSL+UG0+a2SY78LvZr5GViOhUJYTDt8kTiP9KP Q3O2FneO0WTP4BV5wmL8iESC5Yvl92+3iEiOZcDgM3RJ24TRcYDPc5sfKv8Ca/2kWx yoSkrGZgf2rlL8rmzSiEe/Aj0hLXuK+wAN9LsPiU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50617: drm/amdgpu/powerplay/psm: Fix memory leak in power state init Date: Mon, 8 Dec 2025 10:16:54 +0900 Message-ID: <2025120851-CVE-2022-50617-84c9@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2537; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jP8Z5bn4Op2w2W/7KkuMeEV3NPMYCDEK50efcs6jQ+g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlm6swHwsTFdWKmeNYbFa5jrxaf8HCF6IRsjmTelX8Kh CJdr2/siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk0+TLM07D/JX72R1yDn9EN S96ovLdndP9+Z1iw8Rj/7Gd8QpMcTm7Xjfo/k4spLD4WAA== 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: drm/amdgpu/powerplay/psm: Fix memory leak in power state init Commit 902bc65de0b3 ("drm/amdgpu/powerplay/psm: return an error in power state init") made the power state init function return early in case of failure to get an entry from the powerplay table, but it missed to clean up the allocated memory for the current power state before returning. The Linux kernel CVE team has assigned CVE-2022-50617 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 902bc65de0b3d72c481b45cbac3e97ab8cb399c2 and fixed in 5.15.86 with commit 1caed03305b560bafea8eaa57f1847791658b3ff Issue introduced in 5.11 with commit 902bc65de0b3d72c481b45cbac3e97ab8cb399c2 and fixed in 6.0.16 with commit 7cb8932644438bee992dc898a36ffe155fdc1bfa Issue introduced in 5.11 with commit 902bc65de0b3d72c481b45cbac3e97ab8cb399c2 and fixed in 6.1.2 with commit 1c65f8f98148709e08bd6157a807c443ba91f0ac Issue introduced in 5.11 with commit 902bc65de0b3d72c481b45cbac3e97ab8cb399c2 and fixed in 6.2 with commit 8f8033d5663b18e6efb33feb61f2287a04605ab5 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-50617 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/powerplay/hwmgr/pp_psm.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/1caed03305b560bafea8eaa57f1847791658b3ff https://git.kernel.org/stable/c/7cb8932644438bee992dc898a36ffe155fdc1bfa https://git.kernel.org/stable/c/1c65f8f98148709e08bd6157a807c443ba91f0ac https://git.kernel.org/stable/c/8f8033d5663b18e6efb33feb61f2287a04605ab5