From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796045701; b=5rK0j8v+vJ2PUi12gJ0OVI4iukND5gEyokkAlJ6cbQne9BKvAyzGqQffxUvJmqtJctHw Tkp4qVbRvbBaTfaWvL421qBJJh/6OzAxeJzAb+t5QSGU5yEyB/uZ2t6Za+v1s/xG85Cn2 obnMkY90sGgXYYu77QzDZ+kc2y1h5jSQXV7WSCvakmuTCiTjrAn1o400j4GgZAnVoRuak QgmTVwYHCrCAQleRX/bC5gkJMRsfpkI52SGIC7CYOFUmU34sOudIKiLoBIBuB5Gb8DvTM y+E/T9iawEamvC1rzQiM0iNd1xkTRFOFUvUo0SU5RNgXQGVugiMaaqOVX+UOs5ARlEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045701; 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=ww9TLtUCclF0CiKIdj4KUvpdny5oKp7CinuhL7wxCQE=; b=C9bq6iMbWGNtEBF9nKexytXhzsUXO9eXO9+1MXWafEt+guNZ1hgsPoDHZ8LLec1C8T3C l0dBQyMT8uDQEHGuxFLLOsSo1EPXYZQLcnhDJx54QQEmhua3ZVhzsgNBFuNsUiqmzCQz7 3GVBL7iKePmAra7LLkHezKOLeK9CLdL0sUHAywXH05msjsiuUCq/D0557rlhNLKjTjD3N qYJpbujCUFIDHI4IRya5xOuWixpb8OqiCISOu7rzrp/kpkuERBEQNni3gGJb5HxC9Dg6U KPSv1FUdQhJU3/R1YPTKFzzVVGy/OFvlLz0Gko5e10CQ4eWJFjNwj8bozLVwrQ/Ifhg== 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=BNWbnW5y; 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 D9D5A606A31C for ; Mon, 30 Nov 2026 13:35:01 +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=BNWbnW5y Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1AF81F000C1; Mon, 30 Nov 2026 13:35:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045701; bh=ww9TLtUCclF0CiKIdj4KUvpdny5oKp7CinuhL7wxCQE=; h=From:To:Cc:Subject:Date:Reply-To; b=BNWbnW5yf/N/nzcKBmcmezJjj/Vbz66mIJMLtP9qYck2CTFeEd3pLl7aBZ1nJVV7B PCRHWH7GhLjGx6e5XLg6gAkA7CLzL75aS8PpCRb1w8Q4yXtHBup1zbt4n7vkH0TwxU 95+xNKUKsPisVwRiQWVbzn15Bnz/6lDSwHw9D2rI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99985: drm/amdkfd: don't drop an SVM CWSR reference that was never taken Date: Mon, 30 Nov 2026 14:20:15 +0100 Message-ID: <2026113003-CVE-2026-99985-da86@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=3257; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=svMET91cs5hz0h7My2kI4AHPqcEpU0lahmeiEMzLMJE=; b=kA0DAAIRMUfUDdst+ykByyZiAGsNd4ugOTUxDUZOQWmip3CE5Od9arkwOmfTDQsysCgoH0wvM IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmsNd4sACgkQMUfUDdst+ym+5gCgjK8D LUCCj3ibKiIzBMlyBursDrIAn03VwwaK56nelgBe9WH5ROa8Vua+ 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: don't drop an SVM CWSR reference that was never taken When kfd_queue_acquire_buffers() fails, its error path calls kfd_queue_release_buffers(), which also drops a queue_refcount on the SVM range at ctx_save_restore_area_address. The SVM range is the last buffer acquired, and kfd_queue_buffer_svm_get() takes no reference when it fails, so on every error path this reference was never taken. If another queue of the process uses that CWSR range, its reference is dropped instead, and unmapping the range no longer evicts that queue while its CWSR area is unmapped from the GPU. On navi31, with queue A using an SVM CWSR range: munmap() of the range logs Freeing queue vital buffer 0x..., queue evicted but after a CREATE_QUEUE that reuses A's CWSR address with an unmapped write pointer (-EINVAL), the same munmap() leaves A running without the message. Only put the BOs on the acquire error path. The warning and the eviction are back after the failed CREATE_QUEUE. (cherry picked from commit 9a08122e6361ef73f4b512d5db9596d561305519) The Linux kernel CVE team has assigned CVE-2026-99985 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit b049504e211e8f4dbcd40434f2dcab2215ea1039 and fixed in 6.12.117 with commit 25ee77d64ae14e1f4c3035fd867364537a0f3690 Issue introduced in 6.12 with commit b049504e211e8f4dbcd40434f2dcab2215ea1039 and fixed in 6.18.63 with commit 1436e441ad19a475ce3fdaacee7efe670405cae9 Issue introduced in 6.12 with commit b049504e211e8f4dbcd40434f2dcab2215ea1039 and fixed in 7.3.4 with commit 861337bf1a6a0fb64daffdfbc5bb165c1d6ce3aa Issue introduced in 6.12 with commit b049504e211e8f4dbcd40434f2dcab2215ea1039 and fixed in 7.4-rc1 with commit 030d47cc6720e0f07b502876cdbd266e309f9461 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-99985 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_queue.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/25ee77d64ae14e1f4c3035fd867364537a0f3690 https://git.kernel.org/stable/c/1436e441ad19a475ce3fdaacee7efe670405cae9 https://git.kernel.org/stable/c/861337bf1a6a0fb64daffdfbc5bb165c1d6ce3aa https://git.kernel.org/stable/c/030d47cc6720e0f07b502876cdbd266e309f9461