# CVE-2026-68266: drm/xe: Hold a dma-buf reference for imported BOs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-08-10T12:01:41.280Z
- **Modified:** 2026-10-19T21:18:00.230Z

## Who should check

- Anyone running Linux \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c22d65d62b3318e237c0e5b1177d90ab83d9fe06; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c1954c66662de477a8f4309335b775f7b07bd28b; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 62775525a27c3b0d56382e08ba81ee2d322058b6
- Anyone running Linux 6.8

## Description

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)

## Affected and fixed versions

- Linux: \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c22d65d62b3318e237c0e5b1177d90ab83d9fe06; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c1954c66662de477a8f4309335b775f7b07bd28b; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 62775525a27c3b0d56382e08ba81ee2d322058b6 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 62775525a27c3b0d56382e08ba81ee2d322058b6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68266. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68266.md
Affected: Linux >= dd08ebf6c3525a7ea2186e636df064ea47281987, < c22d65d62b3318e237c0e5b1177d90ab83d9fe06; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < c1954c66662de477a8f4309335b775f7b07bd28b; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48; >= dd08ebf6c3525a7ea2186e6…
Fixed in: Linux 62775525a27c3b0d56382e08ba81ee2d322058b6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68266 being exploited?

There is no confirmed exploitation: CVE-2026-68266 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68266?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-68266?

Linux \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c22d65d62b3318e237c0e5b1177d90ab83d9fe06; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< c1954c66662de477a8f4309335b775f7b07bd28b; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 62775525a27c3b0d56382e08ba81ee2d322058b6; Linux 6.8.

### Is there a fix for CVE-2026-68266?

Yes. Fixed in Linux 62775525a27c3b0d56382e08ba81ee2d322058b6. Upgrade Linux to 62775525a27c3b0d56382e08ba81ee2d322058b6 or later.

### How do I check if I'm affected by CVE-2026-68266?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c22d65d62b3318e237c0e5b1177d90ab83d9fe06>
- other: <https://git.kernel.org/stable/c/c1954c66662de477a8f4309335b775f7b07bd28b>
- other: <https://git.kernel.org/stable/c/ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48>
- other: <https://git.kernel.org/stable/c/62775525a27c3b0d56382e08ba81ee2d322058b6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68266>

HTML: <https://flawdb.com/CVE-2026-68266> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68266>
