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 0FEDC2F998B for ; Mon, 15 Sep 2025 14:08:44 +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=1757945324; cv=none; b=sYMQiTMt+lX5SROsFZ/yexEwKuO05euSg4eius4Ht9eSSHTT0tScBbnLFLO39mHYw1TPK2VmWedK5dP9B6DWxiyLBxBoKlop+2MEl/boabbysp/Q74e5mtm19cruUVoD7b/ojWKv2Qav4x535UMb1sYGxmQuTE0X2DQdOi6nK5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945324; c=relaxed/simple; bh=rH3wBnB2/jC8JOitH08eThouGf78emR4H0WK60uHCw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iAJVOymaGLwcdm2vlzSY8LLEQEPcfd4Al6gcaNJWzFLODNw/m+0iSF0X5SzTwhgYDe56m1+VD6Xjgvl6DIAKIcYWaiFU6DmFxDGbAW7Z7JKv0eHUGVAHYW7sIs7WtZHkE+gkqqZX6cmUWRnmtId4k4uDjqtHTiNpkQwuC1bcwAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JvSs9PiN; 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="JvSs9PiN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6967CC4CEF1; Mon, 15 Sep 2025 14:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945323; bh=rH3wBnB2/jC8JOitH08eThouGf78emR4H0WK60uHCw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JvSs9PiNGRrLwS44kJu61wndZJ3IIMDCKclXRs96TBF03LPPr8nmctfTEJbLIx8cL l7LG69J495IbmoBvx5tiH1SAqoFT7Bi3lxFbIfeGAzQutN9lQmnr++5+ikKd3C2R0T 1g3tPbfVvkNtRC8JwbVIuAZ7rWhAaI0lJuf7Mcqw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53152: drm/amdgpu: fix calltrace warning in amddrm_buddy_fini Date: Mon, 15 Sep 2025 16:02:15 +0200 Message-ID: <2025091552-CVE-2023-53152-130d@gregkh> X-Mailer: git-send-email 2.51.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=3338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jwlTHuRva1kf589PCoLemrmpbJxp6JJLVuiU2dOlzj4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZAL4Zy48/Zv16TmPmbqeXMLzp+9e8KPgheXMI18eL r4V6av5piOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmUl3DsGDju3n3nnMUyPxz TFo/TSMsWbo3Lo5hwYnFvD85lZbFBL4+sXqp5M0ZSR+q5wEA 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 calltrace warning in amddrm_buddy_fini The following call trace is observed when removing the amdgpu driver, which is caused by that BOs allocated for psp are not freed until removing. [61811.450562] RIP: 0010:amddrm_buddy_fini.cold+0x29/0x47 [amddrm_buddy] [61811.450577] Call Trace: [61811.450577] [61811.450579] amdgpu_vram_mgr_fini+0x135/0x1c0 [amdgpu] [61811.450728] amdgpu_ttm_fini+0x207/0x290 [amdgpu] [61811.450870] amdgpu_bo_fini+0x27/0xa0 [amdgpu] [61811.451012] gmc_v9_0_sw_fini+0x4a/0x60 [amdgpu] [61811.451166] amdgpu_device_fini_sw+0x117/0x520 [amdgpu] [61811.451306] amdgpu_driver_release_kms+0x16/0x30 [amdgpu] [61811.451447] devm_drm_dev_init_release+0x4d/0x80 [drm] [61811.451466] devm_action_release+0x15/0x20 [61811.451469] release_nodes+0x40/0xb0 [61811.451471] devres_release_all+0x9b/0xd0 [61811.451473] __device_release_driver+0x1bb/0x2a0 [61811.451476] driver_detach+0xf3/0x140 [61811.451479] bus_remove_driver+0x6c/0xf0 [61811.451481] driver_unregister+0x31/0x60 [61811.451483] pci_unregister_driver+0x40/0x90 [61811.451486] amdgpu_exit+0x15/0x447 [amdgpu] For smu v13_0_2, if the GPU supports xgmi, refer to commit f5c7e7797060 ("drm/amdgpu: Adjust removal control flow for smu v13_0_2"), it will run gpu recover in AMDGPU_RESET_FOR_DEVICE_REMOVE mode when removing, which makes all devices in hive list have hw reset but no resume except the basic ip blocks, then other ip blocks will not call .hw_fini according to ip_block.status.hw. Since psp_free_shared_bufs just includes some software operations, so move it to psp_sw_fini. The Linux kernel CVE team has assigned CVE-2023-53152 to this issue. Affected and fixed versions =========================== Fixed in 6.1.47 with commit ab6f446c220db0c131f2071846afd835799be0fb Fixed in 6.4.12 with commit 756d674117f5c451f415d1c4046b927052a90c14 Fixed in 6.5 with commit 01382501509871d0799bab6bd412c228486af5bf 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-53152 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/ab6f446c220db0c131f2071846afd835799be0fb https://git.kernel.org/stable/c/756d674117f5c451f415d1c4046b927052a90c14 https://git.kernel.org/stable/c/01382501509871d0799bab6bd412c228486af5bf