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 F3D6E29D266 for ; Tue, 9 Dec 2025 04:10: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=1765253458; cv=none; b=gUVmaXCa5mjDbBaFFYiN85Winx7Oq0I12oN9XJWNgTzudCKKBeScmD3H+JG9HWbDi3iOjcFjsOtrD5N8yi9F4DL9bHhXzWl3xFaqoKQXal1TV8uN9ybhfj4a0xRTwcRXBpuNbOG1+yqTD9z6hkUCTEN3P5iZgzVOYcg114DfR6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253458; c=relaxed/simple; bh=EasWSK7134jYfzcmrTX5ji/UMpCulKpIyBkN0zoDxMg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VUktCeP9OD6R/lPLhPIkc1SyF/Y0oGLPLIfqrTUM/mahhUjvhlaPqM0nMIHDwsMcZZohXPoDnHy0YGqUSRcyrFPy6AOmegf7HOuHgl9P0YZ1z5Fdkr7IDlXCIPrMAHijOJoHO0GLjUbH00gwE8Weg+eN6fxdwWgKIlXqNFhhxJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wFifRuTl; 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="wFifRuTl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03CDAC4CEFB; Tue, 9 Dec 2025 04:10:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253457; bh=EasWSK7134jYfzcmrTX5ji/UMpCulKpIyBkN0zoDxMg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=wFifRuTl4n2G0Eq4J5fzbPebcJfZmgDwZ3JcK8nzzWG4aSUWzd1ixohjnZhbXGCYN 3jfpafI1qFaLlx+g31rh+r6E5iNmAXM1YJtIKS8jrXRZ9sEkp8nshesIsNp2poxR8M BL/5CR+ofUJgzcnov/I/3vgGm9jZaHVKqEvvY+Sg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40332: drm/amdkfd: Fix mmap write lock not release Date: Tue, 9 Dec 2025 13:10:14 +0900 Message-ID: <2025120910-CVE-2025-40332-7e62@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2079; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2v1iBuS15Rizo/kcNkv2dMy3RHkGc0CoEzx58qXqb3U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5U2lu+7me/Oesgl9r0f5yMOdvGSiwJTJ7y+N+vBe zO1cyr6HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARYQaGBV2XPvas3Nu26/2N Q463hELunGn99IBhwcS/evOj1rXu+fwprrnvQzxnW9mrYgA= 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/amdkfd: Fix mmap write lock not release If mmap write lock is taken while draining retry fault, mmap write lock is not released because svm_range_restore_pages calls mmap_read_unlock then returns. This causes deadlock and system hangs later because mmap read or write lock cannot be taken. Downgrade mmap write lock to read lock if draining retry fault fix this bug. The Linux kernel CVE team has assigned CVE-2025-40332 to this issue. Affected and fixed versions =========================== Fixed in 6.12.58 with commit e2105ba1c262dcaa9573f11844b6e1e1ca762c3f Fixed in 6.17.8 with commit f7569ef1cf978aa87aa81b5e9bf40a77497f3685 Fixed in 6.18 with commit 7574f30337e19045f03126b4c51f525b84e5049e 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-40332 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/amdkfd/kfd_svm.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/e2105ba1c262dcaa9573f11844b6e1e1ca762c3f https://git.kernel.org/stable/c/f7569ef1cf978aa87aa81b5e9bf40a77497f3685 https://git.kernel.org/stable/c/7574f30337e19045f03126b4c51f525b84e5049e