CVE-2026-68298
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
10/08/2026
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/xe/vm: Fix SVM leak on resv obj alloc failure in xe_vm_create()<br />
<br />
Commit 9e9787414882 ("drm/xe/userptr: replace xe_hmm with gpusvm") made<br />
xe_svm_init() unconditional in xe_vm_create() and extended it to also<br />
initialize a "simple" gpusvm state for non-fault-mode VMs. The matching<br />
xe_svm_fini() call in xe_vm_close_and_put() was updated to run<br />
unconditionally, but the error unwind path in xe_vm_create() was not.<br />
<br />
On the drm_gpuvm_resv_object_alloc() failure path, xe_svm_init() has<br />
already succeeded but xe_svm_fini() is only called when<br />
XE_VM_FLAG_FAULT_MODE is set. For non-fault-mode VMs this leaves<br />
vm->svm.gpusvm partially initialized and leaks the resources allocated<br />
by drm_gpusvm_init().<br />
<br />
For fault-mode VMs, xe_svm_init() additionally acquires the pagemap<br />
owner via drm_pagemap_acquire_owner() and the pagemaps via<br />
xe_svm_get_pagemaps(). Those resources are released by xe_svm_close(),<br />
not xe_svm_fini(). On the same error path, xe_svm_close() is not<br />
called either, so fault-mode VMs leak the pagemap owner and pagemaps.<br />
<br />
Fix both leaks:<br />
<br />
- Call xe_svm_fini() unconditionally on the err_svm_fini path, matching<br />
the unconditional xe_svm_init() call. Move the vm->size = 0<br />
assignment out of the conditional so the xe_vm_is_closed() assert in<br />
xe_svm_fini() (and xe_svm_close()) holds for both modes.<br />
<br />
- Call xe_svm_close() for fault-mode VMs before xe_svm_fini(), matching<br />
the ordering used in xe_vm_close_and_put().<br />
<br />
(cherry picked from commit ca2a3587d577ba764e0fe628fb676244fc33ddd4)
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH


