{"id":"CVE-2026-98510","summary":"drm/xe/vm: nuke PTs only after unlinking contested VMAs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe/vm: nuke PTs only after unlinking contested VMAs\n\nIn xe_vm_close_and_put(), external-BO VMAs are queued on the contested\nlist for deferred destruction via xe_vma_destroy_unlocked(). However,\nxe_vm_pt_destroy() was previously invoked before processing contested\nVMAs, destroying vm-\u003ept_root while those VMAs were still linked to their\nrespective buffer objects (vm_bo-\u003elist.gpuva).\n\nIf a concurrent thread evicts one of those shared buffer objects,\nxe_bo_trigger_rebind() holding only bo-\u003eresv walks the BO's VMAs and, in\nfault mode, calls xe_vm_invalidate_vma() -\u003e xe_pt_zap_ptes(). Because\nvm-\u003ept_root[tile-\u003eid] is already NULL, dereferencing pt-\u003elevel causes a\nNULL ptr deref.\n\nFix this by deferring xe_vm_free_scratch() and xe_vm_pt_destroy() until\nafter all contested VMAs have been unlinked and destroyed.\n\nUser is reporting hitting a NULL ptr deref in xe_pt_zap_ptes(), which\ncould be explained by this race.\n\n(cherry picked from commit c2863648959489767f08892fd6e90577d2ea0b6a)","modified":"2026-10-20T02:30:39.400930160Z","published":"2026-10-18T15:17:20.805Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98510.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/24a22fb3c731474b68e986af6804db450fb88617"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70fddc065ac80845ffd33095b3635d59883cf7e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba678c2b02e0d36b53deb5a6d5e5ea044d36def7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bddaa5e4094c134452c29e20a26c4718827e4cb1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98510.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98510"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc"},{"fixed":"70fddc065ac80845ffd33095b3635d59883cf7e6"},{"fixed":"ba678c2b02e0d36b53deb5a6d5e5ea044d36def7"},{"fixed":"bddaa5e4094c134452c29e20a26c4718827e4cb1"},{"fixed":"24a22fb3c731474b68e986af6804db450fb88617"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98510.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.8.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98510.json"}}],"schema_version":"1.9.0"}