{"id":"CVE-2026-98510","aliases":["CVE-2026-98510"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe/vm: nuke PTs only after unlinking contested VMAs","summary":"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->pt_root while those VMAs were still linked to their\nrespective buffer objects (vm_bo->list.gpuva).\n\nIf a concurrent thread evicts one of those shared buffer objects,\nxe_bo_trigger_rebind() holding only bo->resv walks the BO's VMAs and, in\nfault mode, calls xe_vm_invalidate_vma() -> xe_pt_zap_ptes(). Because\nvm->pt_root[tile->id] is already NULL, dereferencing pt->level 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)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->pt_root while those VMAs were still linked to their\nrespective buffer objects (vm_bo->list.gpuva).\n\nIf a concurrent thread evicts one of those shared buffer objects,\nxe_bo_trigger_rebind() holding only bo->resv walks the BO's VMAs and, in\nfault mode, calls xe_vm_invalidate_vma() -> xe_pt_zap_ptes(). Because\nvm->pt_root[tile->id] is already NULL, dereferencing pt->level 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)","source":"cvelist"}],"published":"2026-10-18T15:17:20.805Z","modified":"2026-10-24T14:16:45.137Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc","fixed":"70fddc065ac80845ffd33095b3635d59883cf7e6","status":"affected"},{"type":"git","introduced":"b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc","fixed":"ba678c2b02e0d36b53deb5a6d5e5ea044d36def7","status":"affected"},{"type":"git","introduced":"b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc","fixed":"bddaa5e4094c134452c29e20a26c4718827e4cb1","status":"affected"},{"type":"git","introduced":"b06d47be7c83165d3b3e45e1d5f9520b79c7f5cc","fixed":"24a22fb3c731474b68e986af6804db450fb88617","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/70fddc065ac80845ffd33095b3635d59883cf7e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba678c2b02e0d36b53deb5a6d5e5ea044d36def7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bddaa5e4094c134452c29e20a26c4718827e4cb1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24a22fb3c731474b68e986af6804db450fb88617","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98510","url":"https://www.cve.org/CVERecord?id=CVE-2026-98510","licence":"CVE Terms of Use","modified":"2026-10-24T14:09:11.598Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98510","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98510","licence":"Public domain","modified":"2026-10-24T14:16:45.137Z"}],"updatedAt":"2026-11-25T22:59:45.207Z","epss":{"score":0.00168,"percentile":0.0649,"date":"2026-12-01T12:00:22.000Z"}}