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 B691625A342 for ; Fri, 2 May 2025 15:58:19 +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=1746201500; cv=none; b=Vl6dq1O14upwqRi0uein0OxUP48aeM2AxDyEldD61fRCUiG2BLn+bRonrUfQpccqmfB69QDwrikE9dgrRmZ/1oxg3DfG9ctAgiOUhQFiZSUeb2tbVUC2sOU6YZ1JgOxkbWCVpyNfUrBDLlD5TJg1VC4EN4tHc3iVmgZh3Xmp8QU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201500; c=relaxed/simple; bh=cHSoj/2uoJzc018XRVF/MZV/I6WXKJcKY09/1FacreA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LBXO4JSX5YjQXkqNJ8tOWEXu4MQ5LRKuODXqxyxPPS1CQCoiqEpVdnqqpC3ZY5XQfgsggBnao0c5aLl+J8dbEcIxfFsTsOkDRpfhpMibkYwsMR+Myzn1ifZFxAxQHR+HByMtQss3br8bqV8NZBLL4giry6brRIsNZKjVEcG1Hso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yOEEJjLt; 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="yOEEJjLt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB5B8C4CEE4; Fri, 2 May 2025 15:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201499; bh=cHSoj/2uoJzc018XRVF/MZV/I6WXKJcKY09/1FacreA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yOEEJjLtcmziEBHGUI9YHK2PNktAugKx5UgABpk3F1CAWmX65w0CiZUnF1uaib6xR q8qLV2WBbEzy5PbrELBba0dc+PhXUlfs/lNdD0eP2hAhSYWWYwoAlJiymZfbBlp29z wqnS1ZKc2oAmmdqAIkSY0Qtz9p0QROIoIxHfJH6w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53074: drm/amdgpu: fix ttm_bo calltrace warning in psp_hw_fini Date: Fri, 2 May 2025 17:55:39 +0200 Message-ID: <2025050214-CVE-2023-53074-3ced@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=2871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qwa7Rj41ScoupekNtMyAR35z7WBmAOw4ofmaK5c0uTE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkirx6dW3l6VvI6niMsl47VOJyYpNCQoXbtxxuNZ/fO3 fg8++y3aR2xLAyCTAyyYoosX7bxHN1fcUjRy9D2NMwcViaQIQxcnAIwkZUzGObpTvs66b1qbGDe uX7enc/cqmaU+P1mWLDOrCGOMfPPo//n2XZ+SGrf++HXewEA 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: fix ttm_bo calltrace warning in psp_hw_fini The call trace occurs when the amdgpu is removed after the mode1 reset. During mode1 reset, from suspend to resume, there is no need to reinitialize the ta firmware buffer which caused the bo pin_count increase redundantly. [ 489.885525] Call Trace: [ 489.885525] [ 489.885526] amdttm_bo_put+0x34/0x50 [amdttm] [ 489.885529] amdgpu_bo_free_kernel+0xe8/0x130 [amdgpu] [ 489.885620] psp_free_shared_bufs+0xb7/0x150 [amdgpu] [ 489.885720] psp_hw_fini+0xce/0x170 [amdgpu] [ 489.885815] amdgpu_device_fini_hw+0x2ff/0x413 [amdgpu] [ 489.885960] ? blocking_notifier_chain_unregister+0x56/0xb0 [ 489.885962] amdgpu_driver_unload_kms+0x51/0x60 [amdgpu] [ 489.886049] amdgpu_pci_remove+0x5a/0x140 [amdgpu] [ 489.886132] ? __pm_runtime_resume+0x60/0x90 [ 489.886134] pci_device_remove+0x3e/0xb0 [ 489.886135] __device_release_driver+0x1ab/0x2a0 [ 489.886137] driver_detach+0xf3/0x140 [ 489.886138] bus_remove_driver+0x6c/0xf0 [ 489.886140] driver_unregister+0x31/0x60 [ 489.886141] pci_unregister_driver+0x40/0x90 [ 489.886142] amdgpu_exit+0x15/0x451 [amdgpu] The Linux kernel CVE team has assigned CVE-2023-53074 to this issue. Affected and fixed versions =========================== Fixed in 6.1.21 with commit 7be9a2f8c5179520a7d5570e648e0c97d09e4fae Fixed in 6.2.8 with commit 55a7c647ebf6e376c45d8322568dd6eb71937139 Fixed in 6.3 with commit 23f4a2d29ba57bf88095f817de5809d427fcbe7e 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-2023-53074 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/amdgpu/amdgpu_psp.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/7be9a2f8c5179520a7d5570e648e0c97d09e4fae https://git.kernel.org/stable/c/55a7c647ebf6e376c45d8322568dd6eb71937139 https://git.kernel.org/stable/c/23f4a2d29ba57bf88095f817de5809d427fcbe7e