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=1795154257; b=ju0rnBZwr9XTn3mwWuuoKDK6YMPqzrDtzcvryrwya2D6fCcwJNtOFRYva7thbJ+MmEaS Pd9dCkEKDd5lZeEvZgGY1q89z0JC4zB2EiGisLAt+dV0wxLvNnLL95WBKp3ZHxRuqMAUY 0B5NDhp6vayvnmC7o2C0cibJYhq4lwzBt07xStkC71lFaZVsF81mqju1+Vamdc3A+jwyc zllFD6hSohz7WmtxGnG6+Dx0jEnoYnci+8M52f4T7itzDCodHoxQlIttOxsIZsomKJPV4 rkBiCNlhvA+IuLYl05N3HsrahuBxJAu/4ZbE2BajCrmWJ0+eaDGhWJ/TNGQhvk2hPLw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154257; 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=eV1g5rFXQ+OxVI2Z1ECXQu5Ukrcz+NO7myPMDcxEJzY=; b=He/61a9Z3tP7vO9R7TzO/XqLGhjbqNpe82C9+3TN7L6kuCXcOrdFncVajepO0hKwjVc1 ZUDYrQOs9sdRyzDa7JmZXmAixaxohiTdXNOLHWBjFdr2eFfz7kTLiyoMdVsnAI+F81j7N dvlgONwuHPo/gxrRqNkc/YPMep9Nuaux4SQoPwYXeWepEMVFiX0s89KYceTPCE0lzGYO3 QEqdUKeUD8b48XVU2pCIN0QIk60Q3kys98Ygxyw+MrOeaVoZXur89P4aROFDeMqA989+A oRnPg7PEvshpOthBLR5hKbWvFkYfV0U+aFaixGD/7RlY6KT6xylB4M5VoAVZSnYkuFA== 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="aoNFr+G/"; 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 3113760A2625 for ; Fri, 20 Nov 2026 05:57:37 +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=aoNFr+G/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 527B31F000C6; Fri, 20 Nov 2026 05:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154256; bh=eV1g5rFXQ+OxVI2Z1ECXQu5Ukrcz+NO7myPMDcxEJzY=; h=From:To:Cc:Subject:Date:Reply-To; b=aoNFr+G/GLXi9LHv4B64YaHzm/w+gVuorIB5Mh00prCt7CJnGC6PL1KPmpz5cI7xl Dr5LJSnEDDT7ErVtf2IW7fAproOPyyRHVsp32z4SaLmSmbjSBHLYmu+1ATRuznhnea bI3CGqWdujZYsGUX/boVXqA4ib925kjjfAtUx52Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99633: drm/amdgpu: keep the CS user fence BO in GTT Date: Fri, 20 Nov 2026 06:50:19 +0100 Message-ID: <2026112037-CVE-2026-99633-243f@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=3415; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8L/kZXzI4qldGUZ28CDvcMtiS0oXPy1BHaTz+Myi8GI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7xe9+Ob44MOVeVKzioLvpC9VYyh8YfBscdKW3BQNo Yb9n+66dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjlkwzGYT+CfPOll15/EV 6Z5Hvu7MztovyMKwoP+vzJf5Mecj4peXCBrrG5zbUTB5JgA= 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: keep the CS user fence BO in GTT The CS ioctl hands the GPU the GART address of the user fence BO, but since the BO keeps its own preferred and allowed domains, it no longer makes sure the BO is in GTT. A user fence in a VRAM BO, which only needs to be a page in size, gets its address from amdgpu_bo_gpu_offset(), which warns about non-contiguous VRAM. On navi31, a CS with a user fence in a 4K VRAM BO, or in one created with AMDGPU_GEM_CREATE_VM_ALWAYS_VALID: WARNING: amdgpu_object.c:1531 at amdgpu_bo_gpu_offset+0x86/0xb0 [amdgpu], CPU#11: cs_gem_checks/18393 RIP: 0010:amdgpu_bo_gpu_offset+0x86/0xb0 [amdgpu] Call Trace: amdgpu_cs_parser_bos.isra.0+0x4eb/0x850 [amdgpu] amdgpu_cs_ioctl+0x97e/0x2510 [amdgpu] drm_ioctl_kernel+0xac/0x110 [drm] drm_ioctl+0x2c6/0x5b0 [drm] __x64_sys_ioctl+0xa0/0xf0 do_syscall_64+0xa3/0x4d0 entry_SYSCALL_64_after_hwframe+0x76/0x7e and BOs which can't be in GTT at all, like GWS or OA ones of a page in size, pass the checks as well. Only take BOs which can't be anywhere else than in GTT as user fence, which the CS then validates there along with its other BOs. While at it, detect userptrs with amdgpu_ttm_tt_is_userptr(); amdgpu_ttm_tt_get_usermm() returns NULL once the task which created the userptr is gone. v2: only take BOs which can only be in GTT instead of special casing the user fence BO in the validation, use amdgpu_ttm_tt_is_userptr() (Christian) (cherry picked from commit f16989def9561d04d0f2e77216f5319112d29bf1) The Linux kernel CVE team has assigned CVE-2026-99633 to this issue. Affected and fixed versions =========================== Fixed in 6.12.118 with commit b4a1229ab05f0ba7fa1a52032686e32e801fcc04 Fixed in 6.18.64 with commit 69a46cbe11b6eb15f6d48591a67217ac634ddc3d Fixed in 7.3.5 with commit 2c7bd4568f5d19d63241ccdf930b15e619af7c2b Fixed in 7.4-rc2 with commit 7a56d929dc2304edaa6231e1eb5eb82b7e8b74a9 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-99633 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_cs.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/b4a1229ab05f0ba7fa1a52032686e32e801fcc04 https://git.kernel.org/stable/c/69a46cbe11b6eb15f6d48591a67217ac634ddc3d https://git.kernel.org/stable/c/2c7bd4568f5d19d63241ccdf930b15e619af7c2b https://git.kernel.org/stable/c/7a56d929dc2304edaa6231e1eb5eb82b7e8b74a9