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 EB60926E6F6 for ; Sat, 4 Oct 2025 15:18:05 +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=1759591086; cv=none; b=K2wgSMYUl3p/XC8V5zHb9VafY9g209WP2PH3FAHLUzsGwON2BjQ0RYMGAgMmC78H8lhACQKj7sGDgO1t+6GgNmUcyAX9ovg59XH+lKGFuprTfNTeij2CiSllx/07FEvIyqmEPVLNl2hDkQfQCetWvpFSttZ9f8oxMwRRGHk5d/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591086; c=relaxed/simple; bh=mnPZs91sXcJH+a0udW/1s1VXAuIdUiq8+hLYS/7DyaI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=STffv7zNIeYFM7dAhQL/PLmbDgOKKBt78KJ7rfqSOv8jX+1DtXKn9TP1BcsdfEfrVAUWYYGvQSZb7APKl0en9XkwK2rPSkPhxrsPrFpuwtvs9zDVE9d3XPPApS0ChcAj4kVQ7GadX/tmEI8f7w0gV+4eE8rqZFrGasVAu30rtiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TsTMXKOi; 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="TsTMXKOi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AC1BC4CEF1; Sat, 4 Oct 2025 15:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591085; bh=mnPZs91sXcJH+a0udW/1s1VXAuIdUiq8+hLYS/7DyaI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TsTMXKOiyVuzfGqDBcIirU2WzmHPCzbZgajl1bmcX3zKbWjrmir3Uifz5g0VG4D6R zzomq+SjkZSL8PnM21Ju+BUZcDHYPz9KBOeAh8yp/9LOzPMiTM9gjc6oCCKyF52P5c QojPsvcpxs/hbYRo2nch0O5bx0g4g2JQpb/uEEws= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53545: drm/amdgpu: unmap and remove csa_va properly Date: Sat, 4 Oct 2025 17:16:59 +0200 Message-ID: <2025100445-CVE-2023-53545-8d50@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=2580; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YLQdTt5d901zlvOUiEoJIoPSr/vJzAGpGJoPWv6rkuw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrWIDc7KDpp1abjAx43NAr/734LBZIoUJ1Vlrbwsqr FlumnOiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy25Nhvpd0krNwyDOzJid2 3wSL9TomzdUiDAuaeQ4uDHz9ny3HOE9oykuhv0eLtn8GAA== 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: unmap and remove csa_va properly Root PD BO should be reserved before unmap and remove a bo_va from VM otherwise lockdep will complain. v2: check fpriv->csa_va is not NULL instead of amdgpu_mcbp (christian) [14616.936827] WARNING: CPU: 6 PID: 1711 at drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1762 amdgpu_vm_bo_del+0x399/0x3f0 [amdgpu] [14616.937096] Call Trace: [14616.937097] [14616.937102] amdgpu_driver_postclose_kms+0x249/0x2f0 [amdgpu] [14616.937187] drm_file_free+0x1d6/0x300 [drm] [14616.937207] drm_close_helper.isra.0+0x62/0x70 [drm] [14616.937220] drm_release+0x5e/0x100 [drm] [14616.937234] __fput+0x9f/0x280 [14616.937239] ____fput+0xe/0x20 [14616.937241] task_work_run+0x61/0x90 [14616.937246] exit_to_user_mode_prepare+0x215/0x220 [14616.937251] syscall_exit_to_user_mode+0x2a/0x60 [14616.937254] do_syscall_64+0x48/0x90 [14616.937257] entry_SYSCALL_64_after_hwframe+0x63/0xcd The Linux kernel CVE team has assigned CVE-2023-53545 to this issue. Affected and fixed versions =========================== Fixed in 6.4.12 with commit a3a96bf843c356d1d9b2d7f6d0784b6ee28ca9d0 Fixed in 6.5 with commit 5daff15cd013422bc6d1efcfe82b586800025384 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-53545 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_csa.c drivers/gpu/drm/amd/amdgpu/amdgpu_csa.h drivers/gpu/drm/amd/amdgpu/amdgpu_kms.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/a3a96bf843c356d1d9b2d7f6d0784b6ee28ca9d0 https://git.kernel.org/stable/c/5daff15cd013422bc6d1efcfe82b586800025384