CVE-2026-68298: drm/xe/vm: Fix SVM leak on resv obj alloc failure in xe_vm_create()
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/vm: Fix SVM leak on resv obj alloc failure in xevmcreate()
Commit 9e9787414882 ("drm/xe/userptr: replace xehmm with gpusvm") made xesvminit() unconditional in xevmcreate() and extended it to also initialize a "simple" gpusvm state for non-fault-mode VMs. The matching xesvmfini() call in xevmcloseandput() was updated to run unconditionally, but the error unwind path in xevmcreate() was not.
On the drmgpuvmresvobjectalloc() failure path, xesvminit() has already succeeded but xesvmfini() is only called when XEVMFLAGFAULTMODE is set. For non-fault-mode VMs this leaves vm->svm.gpusvm partially initialized and leaks the resources allocated by drmgpusvminit().
For fault-mode VMs, xesvminit() additionally acquires the pagemap owner via drmpagemapacquireowner() and the pagemaps via xesvmgetpagemaps(). Those resources are released by xesvmclose(), not xesvmfini(). On the same error path, xesvmclose() is not called either, so fault-mode VMs leak the pagemap owner and pagemaps.
Fix both leaks:
- Call xesvmfini() unconditionally on the errsvmfini path, matching the unconditional xesvminit() call. Move the vm->size = 0 assignment out of the conditional so the xevmisclosed() assert in xesvmfini() (and xesvmclose()) holds for both modes.
- Call xesvmclose() for fault-mode VMs before xesvmfini(), matching the ordering used in xevmcloseandput().
(cherry picked from commit ca2a3587d577ba764e0fe628fb676244fc33ddd4)
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-68298?
CVE-2026-68298 has a risk score of 18, indicating it is highly critical.
How do I fix CVE-2026-68298?
To address CVE-2026-68298, it is recommended to update the Linux kernel to the version that includes the fix.
What impact does CVE-2026-68298 have on my system?
CVE-2026-68298 can lead to potential resource leaks when allocating reserved objects, adversely affecting system stability.
Is CVE-2026-68298 being actively exploited?
As of now, there is no public information indicating that CVE-2026-68298 is being actively exploited in the wild.
What versions of the Linux kernel are affected by CVE-2026-68298?
CVE-2026-68298 affects versions of the Linux kernel prior to the implementation of the fix in the specified commit.