CVE-2026-99209: drm/xe: skip eviction of a BO with no resource
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: skip eviction of a BO with no resource
xeevictflags() switches on tbo->resource->memtype to choose an eviction placement. An xe BO can reach eviction with no ttm.resource, e.g. an imported dma-buf BO whose resource was freed during teardown while its attachment is still live: the exporter then invalidates it via xedmabufmovenotify() -> xeboevict(), and the switch dereferences a NULL resource and faults.
A BO with no resource has nothing placed or mapped, so there is nothing to evict. Return an empty placement (numplacement = 0), mirroring the handling already used for non-xe scatter-gather BOs just above; ttmbovalidate() then takes the pipeline-gutting path and returns 0.
Without the fix the xedmabuf@xetestdmabufmovenotifynoresource dynamic live selftest will fail with below stack.
BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:xeevictflags+0xf4/0x140 [xe] Call Trace: <TASK> xeboevict+0x40/0xa0 [xe] ? ttmbopipelinegutting+0x71/0x180 [ttm] xetestdmabufmovenotifynoresource+0x182/0x440 [xe] xedmabufkunit+0x387/0x580 [xe]
v2: Add Fixes tag and failure info in commit text (Matt Brost)
(cherry picked from commit dbcfaac6331f1fcb0c2fe3ad3e9adb1e5d43ec0c)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.59 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.2.13 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.2.13-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 7.2.15-1Fixed in 7.3.3-1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.3.0-10.10 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.3.0-1004.4 - Upgrade
Upgrade
ubuntu/linux-azureto a version that resolves this vulnerability.Fixed in 7.3.0-1004.4 - Upgrade
Upgrade
ubuntu/linux-azure-fdeto a version that resolves this vulnerability.Fixed in 7.3.0-1004.5 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.3.0-1004.4 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.3.0-1004.4 - Upgrade
Upgrade
ubuntu/linux-raspito a version that resolves this vulnerability.Fixed in 7.3.0-1004.4 - Upgrade
Upgrade
ubuntu/linux-realtimeto a version that resolves this vulnerability.Fixed in 7.3.0-10.10.1 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.3.0-10.10.1 - Upgrade
Upgrade
Linux kernel drm/xeto a version that resolves this vulnerability.Patch dbcfaac6331f1fcb0c2fe3ad3e9adb1e5d43ec0c
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's xe DRM driver are exposed when an imported DMA-BUF buffer object reaches eviction after its TTM resource has been freed while an attachment remains live. The described trigger involves the exporter invalidating that buffer through xe_dma_buf_move_notify().
What happens if the issue is triggered?
The xe eviction path dereferences tbo->resource while selecting an eviction placement, even though the resource is NULL. This causes a kernel NULL-pointer dereference in xe_evict_flags and can fault the kernel.
How can I identify the affected condition?
The affected condition is covered by the xe_test_dmabuf_move_notify_no_resource dynamic live self-test. On an unpatched kernel, the test is described as failing with a NULL-pointer-dereference stack trace involving xe_evict_flags, xe_bo_evict, and xe_dma_buf_move_notify.