HIGH Introduced in 6.8
xe ContestedVMA NULL-Deref
CVE-2026-98510
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI4.7MEDIUM
01Description
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)
02KernelScan AI Analysis
Risk summary
A race condition in the Intel Xe GPU driver allows a local user with GPU access to trigger a kernel NULL pointer dereference during VM teardown, causing a kernel panic and denial of service. The bug is reachable from unprivileged contexts including containers with GPU device passthrough.
Vulnerability analysis
During virtual memory teardown in the Xe driver, page tables are destroyed before contested VMAs (VMAs backed by external buffer objects shared across VMs) are unlinked from their buffer objects. This creates a race window where a concurrent thread evicting a shared buffer object can walk the buffer's VMA list and attempt to invalidate page tables that have already been freed and nulled, resulting in a NULL pointer dereference in xe_pt_zap_ptes(). The fix reorders the teardown sequence to unlink and destroy all contested VMAs first, then destroy the page tables, eliminating the race. Any local user with access to the Xe GPU device node (typically via video/render group membership) can trigger this, including containerized workloads with GPU passthrough.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.8 | 6.12.112 | 70fddc065ac8 |
| 6.18 | 6.8 | 6.18.55 | ba678c2b02e0 |
| 7.2 | 6.8 | 7.2.9 | bddaa5e4094c |
| mainline | 6.8 | 7.3 | 24a22fb3c731 |
| cip/6.12 | 6.8 | 6.12.112-cip33 | 70fddc065ac8 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |