CVE-2026-139746

drm/xe: Guard page-fault worker with runtime PM check

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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
guc_ct_send_locked() on an already-suspended device, tripping:

  Assertion `!xe_pm_runtime_suspended(xe)` failed!
  WARNING at xe_device.c:1267 xe_device_assert_mem_access+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 xe_pagefault_queue_work using
guard(xe_pm_runtime)(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 write_only acks written but the end flush skipped, and skip
counter++, desyncing the cadence check.(Himal)
- Add a comment explaining stale faults.(Himal)

Analysis

AI-generated

Technical impact

The bug resides in the Linux kernel’s drm/xe driver. When a virtual machine that uses an Xe GPU is torn down, the runtime power‑management (PM) reference is released asynchronously. This allows the page‑fault worker to later try to acknowledge faults for a device that has already autosuspended. The worker then calls into code that expects the device to be active, triggering an assertion failure and a kernel panic. The primary effect is a denial of service that brings the host system down, effectively a kernel crash. The weakness corresponds to a racing stale reference that may be classified as a use‑after‑free style bug, as characterized by CWE-416.

Affected Systems

The flaw applies to any Linux kernel that contains the drm/xe driver and has not yet incorporated the manual fix that protects the page‑fault queue worker with a runtime PM reference. All distributions shipping a stock kernel before the patch are potentially impacted, regardless of vendor.

Risk and Exploitability

The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating that there are currently no widespread, publicly known exploits. The attack vector is inferred to be local: an attacker who can control the lifecycle of a VM that uses an Xe device can trigger the race condition. Because the kernel crash occurs without requiring elevated privileges beyond those used to instantiate the VM, the risk of exploitation is moderate, but the impact remains high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that incorporates the fix for runtime PM handling in the drm/xe page‑fault queue.
  • If an immediate kernel upgrade is not possible, temporarily disable runtime PM for Xe devices by setting the appropriate module parameter or using the system’s power‑management interface so the device does not autosuspend during page‑fault acknowledgment.
  • Review any custom driver code that interacts with Xe page‑fault queues to ensure it retains an active PM reference for the entire lifetime of worker tasks.
  • Continuously monitor kernel logs for messages containing "xe_device_assert_mem_access" to detect any attempts to trigger the stale fault path.

Generated by OpenCVE AI on December 1, 2026 at 02:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description 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 guc_ct_send_locked() on an already-suspended device, tripping:   Assertion `!xe_pm_runtime_suspended(xe)` failed!   WARNING at xe_device.c:1267 xe_device_assert_mem_access+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 xe_pagefault_queue_work using guard(xe_pm_runtime)(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 write_only acks written but the end flush skipped, and skip counter++, desyncing the cadence check.(Himal) - Add a comment explaining stale faults.(Himal)
Title drm/xe: Guard page-fault worker with runtime PM check
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM