Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E02B54D09ED for ; Sun, 18 Oct 2026 15:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337073; cv=none; b=uiniWtVb5Zt2sWN+4NrJZr/UTTIEHDTycaprpPzvIeefevsqkN1BxTH56q/d65B9WB0ZAaAjzfV88eVWRHx8kOwoE45RN7AXi70ifWfWcWa+/uKZIPpf5fOrs0tz1Ae9IaztU3E8RRTikArBcRhTRO6OXdm+Cn+YF6gCr4dSquQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337073; c=relaxed/simple; bh=hz84HfiVQ88pDu3XiiW3a9/xYZXuaqll4tXAqnxciUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NUB2TR9WQU7RRvGA9hOy4mAFDe8Q30JwASQO5OjAUlEOq4Ddj4r17lol3oPluQ2yPYUuHx6rcH19pvYV5zftfy9uAkjmWs97fs5Nt805I8Etayn/G9z8xknS10uhX/d6xZEwwLpQ7RKeN0Mmmx1tYaiYlbwCUlIqMziZ/9BgwBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F1E9g4cE; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="F1E9g4cE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 979F11F000C4; Sun, 18 Oct 2026 15:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337070; bh=s2GcIU+kXK5bahs8kjTRSHl5VwP5I4rNkJ5cjnWSkVo=; h=From:To:Cc:Subject:Date:Reply-To; b=F1E9g4cEfzfX2v5nKQ2Px6qs3NTfCIFSVtJVkHAO1I3mlUcPpqefsLcV6LTDECPDW lphJMUE9RAMB6Akr/BNXx0hvxgSIcLgHq8ayKUoACET78vrxUVi3pIHv+GZrQiP2uj kgJZx641AmlGHQSiTxocNGXJvesqv5wj1LaZWABU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98510: drm/xe/vm: nuke PTs only after unlinking contested VMAs Date: Sun, 18 Oct 2026 17:16:14 +0200 Message-ID: <2026101820-CVE-2026-98510-2a7d@gregkh> X-Mailer: git-send-email 2.56.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=3174; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nqFBrbdrbI2qZdaVQnmXQl4G7MGhxzybPO4OxvU0gIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHnVYJdgtnTtn0XXtntd9fb/3vjbw5LfhvXow2GPRh atNKxR/d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEEqYzLDjy1H662GYJSSbP Y/umBAQ9WDbhwwmGBZetJHZOX3p8Fs9VVr97+7Z3uE8XcAQA 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/xe/vm: nuke PTs only after unlinking contested VMAs In xe_vm_close_and_put(), external-BO VMAs are queued on the contested list for deferred destruction via xe_vma_destroy_unlocked(). However, xe_vm_pt_destroy() was previously invoked before processing contested VMAs, destroying vm->pt_root while those VMAs were still linked to their respective buffer objects (vm_bo->list.gpuva). If a concurrent thread evicts one of those shared buffer objects, xe_bo_trigger_rebind() holding only bo->resv walks the BO's VMAs and, in fault mode, calls xe_vm_invalidate_vma() -> xe_pt_zap_ptes(). Because vm->pt_root[tile->id] is already NULL, dereferencing pt->level causes a NULL ptr deref. Fix this by deferring xe_vm_free_scratch() and xe_vm_pt_destroy() until after all contested VMAs have been unlinked and destroyed. User is reporting hitting a NULL ptr deref in xe_pt_zap_ptes(), which could be explained by this race. (cherry picked from commit c2863648959489767f08892fd6e90577d2ea0b6a) The Linux kernel CVE team has assigned CVE-2026-98510 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc and fixed in 6.12.112 with commit 70fddc065ac80845ffd33095b3635d59883cf7e6 Issue introduced in 6.8 with commit b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc and fixed in 6.18.55 with commit ba678c2b02e0d36b53deb5a6d5e5ea044d36def7 Issue introduced in 6.8 with commit b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc and fixed in 7.2.9 with commit bddaa5e4094c134452c29e20a26c4718827e4cb1 Issue introduced in 6.8 with commit b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc and fixed in 7.3-rc5 with commit 24a22fb3c731474b68e986af6804db450fb88617 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-98510 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/xe/xe_vm.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/70fddc065ac80845ffd33095b3635d59883cf7e6 https://git.kernel.org/stable/c/ba678c2b02e0d36b53deb5a6d5e5ea044d36def7 https://git.kernel.org/stable/c/bddaa5e4094c134452c29e20a26c4718827e4cb1 https://git.kernel.org/stable/c/24a22fb3c731474b68e986af6804db450fb88617