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=1796045693; b=LvOu0SVh1b4xCrxpS5zjKHK+nMmKD1ChYJf/BOkVLmtECzuQ2kns5fl3qJB3O/4EdKWp U22SSJxhiYIZbLDmfHOdHQJQGuqCDvwtbLQ/bGdWCY/BJZ6IX5gSxNy+Eu4aZsNLIgrpG KMRJc8V5AGN775BwzIiwdXEMm0/OLLYXuBSNlGCtsjpqm7Qgi13/1pr1FpSDiH16HDpoq i/zWoLTnDsXh3FXesxAwYPM8cxF/P+fTG8tWGbmFpfCbhU7dnXnYqX442NGoPvCMlxFb1 uw04r8IYi+GVXjGLvyoNaZmYn+x+CaCEPp1o0eoveNd2gxd9P0avJ9DfHHKZ08p6eGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045693; 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=cIrNuqUHt4GxUYn1MQsw2c7Q4Xopes/CnAh0uYiiMXg=; b=CQE6ve1qCsE4u4eZGOI+uSjKaK6Usj7AvAW/ZsF8LknTQIjYR4NsT778lhOfMduKVfAb dvujX7+zAbnRNENI4xUepPYO6Bkq06jkiiI1OXHlN7cQwxM7U8GTcnKGXGWlcTOQ5PTDh j+pIlWj6nLxfS4Pcxbhzl3DCjDc6PnHfVC40q+JrhrwBu97CyxeCf64y/Rw8/ud3t0YUJ kiaptLOHxgpzaygy8hb3yvqsWhJoCWkSMe0cWTAPh1wId0uQOKcmLv1rFtHXHrMwwwU5R 1GADWW0LStz46qotoraj2bzy8KluajBbvLOCNxAOyxOxHfRpo/zkgrnjLULKNNyrUUw== 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=Tn2qIC8C; 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 58174606A320 for ; Mon, 30 Nov 2026 13:34:53 +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=Tn2qIC8C Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB86A1F00897; Mon, 30 Nov 2026 13:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045693; bh=cIrNuqUHt4GxUYn1MQsw2c7Q4Xopes/CnAh0uYiiMXg=; h=From:To:Cc:Subject:Date:Reply-To; b=Tn2qIC8C6s+vnitezzBjaaImwb6lp4eut6asnOwGh5rpBsM1vxsPdx2YnQlsisNgp YDralWnPkgHxfyNm3WsvWTuJEE9otWvEZesd/TK4zoLxbeGEypgdqMsBC9IvmSYYRz FwxQ/ND1j+c6ayHlS1FWzlogWGR/iTjOabKD4uVI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99982: drm/amdkfd: wait for a GPU reset before freeing a BO Date: Mon, 30 Nov 2026 14:20:12 +0100 Message-ID: <2026113003-CVE-2026-99982-1602@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=3805; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8/BsdcY5e53BxC0RtYHRRAktKnhM3PcUNeIqXwWWnkw=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm85d02zHmF/4wKnS8ysQa7Ln8jZnWYP/jESeO377bmx U6Y9jC9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyqZhhnuUaW0E3d+Vtuyew +E7/rTQz8NyHSwwLblxb+FRnnhivqof4xzTjxg621zd7AA== 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: wait for a GPU reset before freeing a BO When a GPU reset takes the reset domain, KFD eviction cannot unmap user queues: execute_queues_cpsch() fails its trylock with -EIO, so the queues keep running until the ASIC is reset. The TLB flush is also skipped while the reset is in progress. If the process unmaps and frees a BO in that window, its pages are released while a queue can still access them through stale translations. On MI300X, munmap() then crashes in free_swap_cache() on a small bogus page pointer in its mmu_gather batch page: BUG: unable to handle page fault for address: 0000000000002900 RIP: 0010:free_swap_cache+0x5/0xb0 Call Trace: free_pages_and_swap_cache+0x3a/0x60 tlb_batch_pages_flush+0x43/0x80 tlb_flush_mmu+0x3d/0x110 zap_pte_range+0x80d/0xcd0 ... do_vmi_align_munmap+0x3e8/0x5b0 do_vmi_munmap+0xdf/0x190 __vm_munmap+0xad/0x180 __x64_sys_munmap+0x1b/0x30 In a traced crash the bogus pointer was the read pointer value of an SDMA queue the process had just destroyed, at the read pointer's page offset: the queue's writeback landed in its freed rptr page after the page was reused as the batch page. commit f0b4440cdc18 ("drm/amdkfd: Fix mode1 reset crash issue") fixed this race on process exit by waiting for the reset to complete before freeing the process's BOs. Free through the ioctl has the same race. Wait for the reset there too, using the same helper. (cherry picked from commit 06ff8ce77726b15a98fcc285dd6005cb3f48558b) The Linux kernel CVE team has assigned CVE-2026-99982 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 9c33e5fd4fb63b793d9a92bf35d190630d9bada4 and fixed in 6.12.117 with commit f917af6f91c12f5e3943e110cb9a2b5ca42909d1 Issue introduced in 6.11 with commit 9c33e5fd4fb63b793d9a92bf35d190630d9bada4 and fixed in 6.18.63 with commit 2cbdce3fdf929ec5c13007611a37672720bcfb8e Issue introduced in 6.11 with commit 9c33e5fd4fb63b793d9a92bf35d190630d9bada4 and fixed in 7.3.4 with commit 96da420b053ba050e4e43c3e54d469043c35f73d Issue introduced in 6.11 with commit 9c33e5fd4fb63b793d9a92bf35d190630d9bada4 and fixed in 7.4-rc1 with commit 47d799a718439764432d8ef3a0952af45f025f76 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-99982 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_chardev.c drivers/gpu/drm/amd/amdkfd/kfd_priv.h drivers/gpu/drm/amd/amdkfd/kfd_process.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/f917af6f91c12f5e3943e110cb9a2b5ca42909d1 https://git.kernel.org/stable/c/2cbdce3fdf929ec5c13007611a37672720bcfb8e https://git.kernel.org/stable/c/96da420b053ba050e4e43c3e54d469043c35f73d https://git.kernel.org/stable/c/47d799a718439764432d8ef3a0952af45f025f76