CVE-2026-68266
drm/xe: Hold a dma-buf reference for imported BOs
Reported by linux · Published August 10, 2026
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Hold a dma-buf reference for imported BOs An imported dma-buf BO is created as a ttm_bo_type_sg BO whose reservation object is the exporter's dma_buf->resv. The importer, however, only takes a dma-buf reference after a successful dma_buf_dynamic_attach(). Until then nothing keeps the exporter alive, so if the exporter is freed while the BO still references its resv, a later access to that resv is a use-after-free: Oops: general protection fault, probably for non-canonical address 0x6b6b6b6b6b6b6b9c Workqueue: ttm ttm_bo_delayed_delete [ttm] RIP: 0010:mutex_can_spin_on_owner+0x3f/0xc0 This can be reached on two paths: - dma_buf_dynamic_attach() fails, or - ttm_bo_init_reserved() fails during BO creation. In both cases the BO already has bo->base.resv pointing at the exporter resv, and sg BOs are always torn down via ttm_bo_delayed_delete(), which locks bo->base.resv asynchronously - potentially after the exporter has been freed. Take the dma-buf reference in xe_bo_init_locked(), before ttm_bo_init_reserved(), so it also covers a creation failure there, and release it in xe_ttm_bo_destroy(). The reference is held for the whole BO lifetime, keeping the shared resv alive on every path. v2: - Reworked the fix to avoid creating the imported sg BO before dma_buf_dynamic_attach() succeeds. - Attach with importer_priv == NULL and make invalidate_mappings ignore incomplete imports. v3: - Dropped the xe-side reordering approach since importer_priv must be valid when dma_buf_dynamic_attach() publishes the attachment. - Per Christian's suggestion on the v1 thread, keyed the check on import_attach rather than removing the sg guard entirely. - Fixes both xe and amdgpu in a single TTM patch. v4: - Moved import_attach check to after dma_resv_copy_fences() so fences are copied before returning for successful imports (Thomas). - Removed exporter-alive claim from commit message (Thomas). v5: - Add drm/xe patch to keep imported sg BOs off the LRU before attach succeeds; the TTM fix alone is not sufficient for xe if the BO is already LRU-visible. (Thomas) v4 patch: https://patchwork.freedesktop.org/patch/736663/?series=169129&rev=2 - Patch 1 (drm/ttm) carries Christian's Reviewed-by from v4. v6: - Reworked the fix based on Thomas' suggestion. Instead of the TTM resv individualization (v1-v5) plus the xe off-LRU/placement handling (v5), just hold a dma-buf reference for the imported BO lifetime so the shared resv can never be freed while the BO still references it. Single xe patch, no TTM change. (Thomas) - Take the reference in xe_bo_init_locked() before ttm_bo_init_reserved() so a TTM creation failure is covered too (Thomas). - Dropped the v5 series (drm/ttm + drm/xe off-LRU); the off-LRU approach also regressed in CI BAT via ttm_bo_pipeline_gutting() creating a ghost BO that outlived the exporter. Link to v5: https://patchwork.freedesktop.org/series/169984/ v7: - Move changelog above --- so it stays in the commit message. - Reorder changelog entries oldest-to-newest. (Thomas) (cherry picked from commit 3516f3fae6be35642f8f06f8a218da6425c0306a)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rtla | errata.rockylinux.org | 6.12.0-211.60.1.el10, 5.14.0-687.52.1.el9 |
| kernel-rt-debug-core | errata.rockylinux.org | 5.14.0-687.52.1.el9 |
| kernel-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| perf-debuginfo | errata.rockylinux.org | 5.14.0-687.52.1.el9 |
| kernel-rt-64k-devel | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| python3-perf-debuginfo | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| kernel-rt-64k-debuginfo | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| kernel-rt-modules | errata.rockylinux.org | 5.14.0-687.52.1.el9 |
| perf | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| kernel-debug-modules-extra | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
| kernel-debug-devel-matched | errata.rockylinux.org | 5.14.0-687.52.1.el9 |
| kernel-core | errata.rockylinux.org | 6.12.0-211.60.1.el10 |
21 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | dd08ebf6c3525a7ea2186e636df064ea47281987, dd08ebf6c3525a7ea2186e636df064ea47281987, dd08ebf6c3525a7ea2186e636df064ea47281987 |
| Linux | Linux | 6.8, 0, 6.12.103 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| Linux | Linux | *, *, * |
Timeline
- Aug 10, 2026 CVE Published
- Aug 11, 2026 Coalition ESS Score
- Aug 16, 2026 Security Advisory (3 in total, the first dated here)
- Aug 24, 2026 EPSS Score (10 in total, the first dated here)
- Sep 25, 2026 Distribution Patch (4 in total, the first dated here)
- Oct 8, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68266
vulnetix vdb fixes CVE-2026-68266
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68266/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart