CVE-2026-139746: drm/xe: Guard page-fault worker with runtime PM check
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Guard page-fault worker with runtime PM check
During VM teardown, the VM's runtime PM reference is dropped asynchronously, allowing the device to autosuspend while stale page faults belonging to the now-dead VM are still queued. When the page-fault worker later tries to ack one of these, it calls into gucctsendlocked() on an already-suspended device, tripping:
Assertion !xepmruntimesuspended(xe) failed! WARNING at xedevice.c:1267 xedeviceassertmemaccess+0x11c/0x140 [xe]
A live VM/exec queue always holds a PM reference while it has outstanding work, so if the device is suspended at ack time, the owning context is already gone and the fault is stale.
Take a runtime PM reference across the entire pagefault queue worker to safely deliver acks for torn-down VMs.
v3: - Move PM ref to the generic xepagefaultqueuework using guard(xepmruntime)(xe) instead of tracking it in the GuC backend(Matt Brost).
v2: - Hold PM ref across the entire batch (begin/end) instead of per-ack. This prevents the device from autosuspending mid-batch, which would leave writeonly acks written but the end flush skipped, and skip counter++, desyncing the cadence check.(Himal) - Add a comment explaining stale faults.(Himal)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the generic xe_pagefault_queue_work, hold a runtime PM reference with guard(xe_pm_runtime)(xe) across the entire page-fault batch, rather than acquiring it per acknowledgement or tracking it in the GuC backend, to prevent autosuspend while the batch is active.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the Linux kernel's drm/xe driver are exposed when stale page faults from a VM being torn down remain queued while the device can runtime-autosuspend. The issue concerns page-fault acknowledgement work after the VM or its owning context has been removed.
What condition triggers the failure?
A VM teardown must asynchronously drop its runtime PM reference while page faults associated with that VM are still queued. If the device autosuspends before the page-fault worker acknowledges those stale faults, the worker can call into GuC communication while the device is suspended, triggering an assertion warning.
How can this be mitigated if the fix cannot be applied immediately?
The provided information identifies runtime autosuspend during queued stale page-fault processing as the triggering condition. Avoiding runtime suspension during this processing would prevent the described suspended-device assertion, but no specific configuration workaround is provided.
How does the fix address the problem?
The fix holds a runtime PM reference across the entire generic page-fault queue worker, including a full batch of acknowledgements. This keeps the device awake until batch completion, preventing autosuspend between write-only acknowledgements and the final flush.