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 98123283FDB for ; Wed, 18 Jun 2025 09:29:57 +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=1750238997; cv=none; b=M2g0qxN4GJc1ethhz5fLraOu2Mm4PAMccONSUczkYaXnhQyKQO8qAU6DGd8EY7Y9QJrad4fh9hzI9u7Vcgfse5BVqh+PCqMjY92fruCqNiytM7lVV1G8tAzQgwEGjY8wqh/A8z/uCaqIF/Qedzvi3+uvX+fND59vfbbZV1LOvZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238997; c=relaxed/simple; bh=gS0yTJcD1DH74A/CKpG6WKwYFL9GCC/XJNxv/RwL9xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gQOK/+xjBSKar4Fsoy2JPA9JRO4Tw2BxgvGZ23cONvgCDtUGIocUjExug1Az9RkOP8mPIoYl/+esx7LAYvcFFSpDPF5Y+blWQNecCZfvgq2FdFj0W8/3pWdZe7sneZtAGNp4mBq22jGNNwk5Y3Zcbbd6zzBMXU5M3qQPJG/EfGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BUXnLzt5; 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="BUXnLzt5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 054B8C4CEE7; Wed, 18 Jun 2025 09:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238997; bh=gS0yTJcD1DH74A/CKpG6WKwYFL9GCC/XJNxv/RwL9xs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BUXnLzt5XC7dSnHiyKn42XxewLNJZ00roMXCbE4Y1CWOAD+9nMClL4WpHnAmZviei c4XDUkZt6Uq8+RMm7GTEwlaZoijQecGKGuTiPzQuVCkQWKOk3aZT3/K1dlnvSId+sY kIXduCDua2vCHvCN6KF8GZzTI+BrBTWFkEvUH2rc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38011: drm/amdgpu: csa unmap use uninterruptible lock Date: Wed, 18 Jun 2025 11:28:45 +0200 Message-ID: <2025061842-CVE-2025-38011-c17c@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=2693; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Il3nSHsQ0V0Eh+n9BgwRtC++4Q3T1BVJcKhpx2U7LtU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbafO272seLdFbt8U16NBQZO4GJdabCue3NfQXp4X0 /PsaEJhRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE6g3DfPfn25PF6l3zLzQ3 VkvNDFttzJAky7BgUcaNDGabureth/g4IvaKsGfubr0EAA== 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: csa unmap use uninterruptible lock After process exit to unmap csa and free GPU vm, if signal is accepted and then waiting to take vm lock is interrupted and return, it causes memory leaking and below warning backtrace. Change to use uninterruptible wait lock fix the issue. WARNING: CPU: 69 PID: 167800 at amd/amdgpu/amdgpu_kms.c:1525 amdgpu_driver_postclose_kms+0x294/0x2a0 [amdgpu] Call Trace: drm_file_free.part.0+0x1da/0x230 [drm] drm_close_helper.isra.0+0x65/0x70 [drm] drm_release+0x6a/0x120 [drm] amdgpu_drm_release+0x51/0x60 [amdgpu] __fput+0x9f/0x280 ____fput+0xe/0x20 task_work_run+0x67/0xa0 do_exit+0x217/0x3c0 do_group_exit+0x3b/0xb0 get_signal+0x14a/0x8d0 arch_do_signal_or_restart+0xde/0x100 exit_to_user_mode_loop+0xc1/0x1a0 exit_to_user_mode_prepare+0xf4/0x100 syscall_exit_to_user_mode+0x17/0x40 do_syscall_64+0x69/0xc0 (cherry picked from commit 7dbbfb3c171a6f63b01165958629c9c26abf38ab) The Linux kernel CVE team has assigned CVE-2025-38011 to this issue. Affected and fixed versions =========================== Fixed in 6.12.30 with commit 8d71c3231b33e24a911b8f2d8c3a17ee40aa32d5 Fixed in 6.14.8 with commit a1adc8d9a0d219d4e88672c30dbc9ea960d73136 Fixed in 6.15 with commit a0fa7873f2f869087b1e7793f7fac3713a1e3afe 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-2025-38011 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 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/8d71c3231b33e24a911b8f2d8c3a17ee40aa32d5 https://git.kernel.org/stable/c/a1adc8d9a0d219d4e88672c30dbc9ea960d73136 https://git.kernel.org/stable/c/a0fa7873f2f869087b1e7793f7fac3713a1e3afe