Skip to content
Heist/ feed
High

drm/xe: Hold a dma-buf reference for imported BOs

Type: advisorySource: Official CVE List1 source record

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 reo

Announced Group revision 1
Original source ↗

CVE-2026-68266

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-68266

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "dd08ebf6c3525a7ea2186e636df064ea47281987",
        "lessThan": "c22d65d62b3318e237c0e5b1177d90ab83d9fe06",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "dd08ebf6c3525a7ea2186e636df064ea47281987",
        "lessThan": "c1954c66662de477a8f4309335b775f7b07bd28b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "dd08ebf6c3525a7ea2186e636df064ea47281987",
        "lessThan": "ba8c4cbb31c6f81fa5b12d6e28f1f706040aff48",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "dd08ebf6c3525a7ea2186e636df064ea47281987",
        "lessThan": "62775525a27c3b0d56382e08ba81ee2d322058b6",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/xe/xe_bo.c",
      "drivers/gpu/drm/xe/xe_bo.h",
      "drivers/gpu/drm/xe/xe_bo_types.h",
      "drivers/gpu/drm/xe/xe_dma_buf.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.8",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.103",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.42",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.6",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/xe/xe_bo.c",
      "drivers/gpu/drm/xe/xe_bo.h",
      "drivers/gpu/drm/xe/xe_bo_types.h",
      "drivers/gpu/drm/xe/xe_dma_buf.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-68266

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#41167 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement