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 2308821771B for ; Fri, 2 May 2025 15:56:49 +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=1746201409; cv=none; b=jPL+NdG4n7Nc+diNUhiD84hje2H+nC3Gfe2a8dJjwpCFTjdzelORD4gWBc/L5JuNnvHexVO7y3BpoRzvQP1Gyver9IFgzUnS9Y0jY8GlVNnc4ErEkdNWbdhW23EEmA/gXu69MJzw/E+dK3RCAAb3Q0WqfIOm9WYh35LdfmfvIk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201409; c=relaxed/simple; bh=3Ss0Xl1Py7a5kVXyLFCQgSpN7pyOGNFoen06W9naGzw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YAbEyWXY/EVflCxcGrqoWpV0BxqBuq4JD/DqdW4hvCYCsMO9GEh0IjvIPXRtEEyCgZqxnJI3mBwcYH5wnT8+5pjbFpb1O+u6pXN3zPwtfRTHLzIa1IH9lzLTevKmZ/Qx7ErxK5XAqQUCQs6RUFb+m2rFOVDjXfpslDkyo06+AuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1V32FT8o; 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="1V32FT8o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF15C4CEE4; Fri, 2 May 2025 15:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201409; bh=3Ss0Xl1Py7a5kVXyLFCQgSpN7pyOGNFoen06W9naGzw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1V32FT8o6NHMY4pL4GZoPDMI/yzb7IfXWhSBSMUHQSflEwR/3tSHdZPNjgHVWdHSX geNMkVlZKNl9ROYY4JhFT4Wvo2CBTgbdYrUv9+XV56RsMyYHFVe4owjpLHtZYRnZ/B qQVJ3YF2Diq1iPGVdFVTjE7K4GH0i7QiUj5MdQYE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53036: drm/amdgpu: Fix call trace warning and hang when removing amdgpu device Date: Fri, 2 May 2025 17:55:01 +0200 Message-ID: <2025050201-CVE-2023-53036-db6a@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=2939; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hzwV+RtEr6GqcjRz2uxd72j05cEB7rM5u3XnEzGmIQ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir65OZTnJ81zn5Mq8RTGHtLd2O4maPVzHqbwtd33nQ +dn9szvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibmoMCzpYdDdNPqbz7LJu pViRpvvU1TY1kxnmVywXCP/w6//E+/MSPQ9z7tun/logEAA= 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 call trace warning and hang when removing amdgpu device On GPUs with RAS enabled, below call trace and hang are observed when shutting down device. v2: use DRM device unplugged flag instead of shutdown flag as the check to prevent memory wipe in shutdown stage. [ +0.000000] RIP: 0010:amdgpu_vram_mgr_fini+0x18d/0x1c0 [amdgpu] [ +0.000001] PKRU: 55555554 [ +0.000001] Call Trace: [ +0.000001] [ +0.000002] amdgpu_ttm_fini+0x140/0x1c0 [amdgpu] [ +0.000183] amdgpu_bo_fini+0x27/0xa0 [amdgpu] [ +0.000184] gmc_v11_0_sw_fini+0x2b/0x40 [amdgpu] [ +0.000163] amdgpu_device_fini_sw+0xb6/0x510 [amdgpu] [ +0.000152] amdgpu_driver_release_kms+0x16/0x30 [amdgpu] [ +0.000090] drm_dev_release+0x28/0x50 [drm] [ +0.000016] devm_drm_dev_init_release+0x38/0x60 [drm] [ +0.000011] devm_action_release+0x15/0x20 [ +0.000003] release_nodes+0x40/0xc0 [ +0.000001] devres_release_all+0x9e/0xe0 [ +0.000001] device_unbind_cleanup+0x12/0x80 [ +0.000003] device_release_driver_internal+0xff/0x160 [ +0.000001] driver_detach+0x4a/0x90 [ +0.000001] bus_remove_driver+0x6c/0xf0 [ +0.000001] driver_unregister+0x31/0x50 [ +0.000001] pci_unregister_driver+0x40/0x90 [ +0.000003] amdgpu_exit+0x15/0x120 [amdgpu] The Linux kernel CVE team has assigned CVE-2023-53036 to this issue. Affected and fixed versions =========================== Fixed in 6.1.22 with commit f06b902511ea05526f405ee64da54a8313d91831 Fixed in 6.2.9 with commit 9a02dae3bbfe2df8e1c81e61a08695709e9588f9 Fixed in 6.3 with commit 93bb18d2a873d2fa9625c8ea927723660a868b95 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-53036 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_object.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/f06b902511ea05526f405ee64da54a8313d91831 https://git.kernel.org/stable/c/9a02dae3bbfe2df8e1c81e61a08695709e9588f9 https://git.kernel.org/stable/c/93bb18d2a873d2fa9625c8ea927723660a868b95