Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154088; b=cbyZPOFD72CqyDSII6+Xhzcx/DbqQ+goY+HFFfaOrHenLiwloi6hUilB0mtk3FcQzgEu GhjcG6bkHXlfrJ+UsV3WrFBWFA+bEnJmr3nd/mi5nkfw0gDn0dN+jlaGAe5fS4ZDU0zhi fDcGtcNsoITC/ybniZlww9N8om0rTp3dyHSSv2nViz/ceVroN/JgsUtNQl49E9L9p0Hib W+V+71XVuDl17BYH+4Kt5FFbr/Izy8xgfYzLdJlBT/1MUAJNbgpnkZoP5Q3JAHWQhMzhN F6erjaq6rxywol4P7KcUIJ6FhF8hav/saFzXt64bjlj6oTGixNEp2mvF8+j/0SNa9SA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154088; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=gVpt0d0sWuLJ3xy4M6fU2O+4UCSuxwlwYi8M08EcjuI=; b=ekoDHtzl1IRvZkFHPX4Kr8muS3tCCuadmHe7z9WNPHfVJ4oofh6tROjzPlvTSQ/82lp6 oRsTEmvqIEkdrLIrADejOC2fFFlKoTdNx2/bXKBA7+hbBAkMlhjOZiwet/fhS4Kdt3Kl7 MZ95X8mKhD3o3ZVfv70resuxTVBbaIEWVlhEBaS0xH+pdP0VGqAE0CRDmoDiSwPTTYeoL 7wxhdGEVkokmtLNfSS9FXPSKGnuGPKgWlrspejOujWXTbojFFs2Km3d7QvX6VkHzRr4/i m0M+z0lb2JQr2Q58e+GNomuDiOm7hnqUtQBt0swzum1o0jy3y4ULvwmxBdp0/vqXldg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=X7xsfq9f; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F10A606A325 for ; Fri, 20 Nov 2026 05:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=X7xsfq9f Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEA361F000C4; Fri, 20 Nov 2026 05:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154088; bh=gVpt0d0sWuLJ3xy4M6fU2O+4UCSuxwlwYi8M08EcjuI=; h=From:To:Cc:Subject:Date:Reply-To; b=X7xsfq9fnV4Y4dT/MW1RhyPnH7DlUMjh62c3UXAhr37YzlPKo3G2WwEfgnIOQNQDC E5xDuHXc/Yn7I7R44D/GfCnvWYf7XuUDerluUeTMrMsul609W9yZ8neFQt7u4gOp7H zmF+ODjENh4Cu3yIWby6DFXXT5yDTekH6YbkFFIE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99621: drm/amdgpu: unlock the VM and BO when attaching a KFD BO fails Date: Fri, 20 Nov 2026 06:50:07 +0100 Message-ID: <2026112033-CVE-2026-99621-21e9@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2663; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iYApQp1eiv68qTI8XhNvqkV0cfuFZbiT0WuigCJfWwA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7+d+nCiYFB49987j8wcWrv2zaNunRY3Jq/Zdb1pmy jWlRz+VpSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcjSOYTbr9AqrCSfvFQj2 cptUmu2v5bWOZmBYsMj4UrRw9h7mJ3pvWItnFfTGinV9AwA= 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: unlock the VM and BO when attaching a KFD BO fails kfd_mem_attach() locks the page directory and the BO with a drm_exec transaction on its stack, but leaves through the unwind label without drm_exec_fini() when locking fails, e.g. when MAP_MEMORY_TO_GPU gets a signal while the page directory or the BO is busy. Reservations already acquired then remain locked with their ww_acquire_ctx pointing into the expired stack frame. With one thread doing GEM_VA map/unmap on the KFD VM and another one mapping KFD BOs while getting SIGUSR1 every 20 us: BUG: KASAN: stack-out-of-bounds in __ww_mutex_lock.constprop.0+0x34f5/0x3da0 ww_mutex_lock_interruptible+0x2f/0x150 drm_exec_lock_obj+0x107/0x2d0 [drm_exec] kfd_mem_attach+0x4dd/0x1b60 [amdgpu] and the process ends up in D state. Finish the transaction before unwinding. (cherry picked from commit 7b885fa27e4b9fa5cbdc64e66fc35872aee296f5) The Linux kernel CVE team has assigned CVE-2026-99621 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit fd1fa48b935f22c7d99713bf33846e14a6bb6ab9 and fixed in 7.3.5 with commit 1ae594845217ce740b27ec5a202e9e8cb144e0aa Issue introduced in 7.0 with commit fd1fa48b935f22c7d99713bf33846e14a6bb6ab9 and fixed in 7.4-rc2 with commit e0a1404b34e0002f03f7979cdb791a9b5c3963f5 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-2026-99621 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_amdkfd_gpuvm.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/1ae594845217ce740b27ec5a202e9e8cb144e0aa https://git.kernel.org/stable/c/e0a1404b34e0002f03f7979cdb791a9b5c3963f5