CVE-2026-98999
published high CVSS 3.1 · 7.8drm/xe: Fix stale pinned_link entry when fb-pin performs the final unpin
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux44e694958b95395bd1c41508c88c8ca141bf9bd7 to < 3a11adcfd9a2de74d405bd3e8c4d7a1b328e4684 · 44e694958b95395bd1c41508c88c8ca141bf9bd7 to < b3eaff982839e5c22912d604cd8e7748cece8d63 · 44e694958b95395bd1c41508c88c8ca141bf9bd7 to < cf238c067eaae1cbfb00738e29219b9568d2313e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.18.57 through 6.18.* (unaffected · semver) · 7.2.11 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-7.0 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-aws-7.0-cloud-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-aws-7.0-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-aws-7.0-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-azure-7.0 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-cloud-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-headers-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-fde-7.0 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-cloud-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-headers-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-43-generic-64k | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-gcp-7.0 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-gcp-7.0-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-gcp-7.0-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-headers-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-headers-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-headers-7.0.0-43-generic-64k | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-hwe-7.0 | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-hwe-7.0-cloud-tools-7.0.0-43 | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-hwe-7.0-headers-7.0.0-43 | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-hwe-7.0-tools-7.0.0-43 | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-image-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-43-generic-64k | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-lib-rust-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-modules-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-modules-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-modules-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-modules-7.0.0-43-generic-64k | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-oracle-7.0 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-oracle-7.0-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-oracle-7.0-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-tools-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-tools-7.0.0-43-generic | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | noble | linux-tools-7.0.0-43-generic-64k | Advisory build | 7.0.0-43.43~24.04.1 | USN-9018-2 |
| Ubuntu | resolute | bpftool | Advisory build | 7.7.0+7.0.0-43.43 | USN-9018-1 |
| Ubuntu | resolute | linux | Advisory build | 7.0.0-43.43 | USN-9018-1 |
| Ubuntu | resolute | linux-aws | Advisory build | 7.0.0-1017.18 | USN-9018-1 |
| Ubuntu | resolute | linux-aws-cloud-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18 | USN-9018-1 |
| Ubuntu | resolute | linux-aws-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.18 | USN-9018-1 |
| Ubuntu | resolute | linux-aws-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18 | USN-9018-1 |
| Ubuntu | resolute | linux-azure | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
| Ubuntu | resolute | linux-azure-cloud-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
| Ubuntu | resolute | linux-azure-fde | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-cloud-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-headers-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-headers-7.0.0-1020 | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix stale pinned_link entry when fb-pin performs the final unpin xe_bo_pin_external() and xe_bo_unpin_external() maintain the bo's pinned_link list membership in xe->pinned.late.external, based on whether the current call is the outermost pin or the final unpin. However, the same external bo's pin_count can also be raised and lowered directly by __xe_pin_fb_vma()/__xe_unpin_fb_vma(), which pin the bo as a display scanout buffer without going through xe_bo_pin_external()/xe_bo_unpin_external() at all, and have no notion of, or ownership over, pinned_link. If a bo is pinned both externally (e.g. dma-buf export) and as an fb, and the external unpin happens first, xe_bo_unpin_external() correctly observes pin_count > 1 and leaves the bo on pinned_link. When the fb unpin later performs the true last unpin (pin_count 1 -> 0), it never touches pinned_link, leaving the bo linked on xe->pinned.late.external indefinitely. Once the bo is subsequently freed, this stale list entry points into freed memory, corrupting the list and risking a use-after-free the next time the list is walked or spliced. The backup object pin/unpin sites in xe_bo_notifier_prepare_pinned()/ xe_bo_notifier_unprepare_pinned() have the same bypass characteristic, though they never add their bo to a pinned list, so are not affected by this particular list-corruption issue. Move the pinned_link removal into xe_bo_account_unpin(), which already runs on every unpin path (kernel, external, framebuffer, backup object) right before the true 1 -> 0 pin_count transition. Since list_del_init() only operates on the node itself, this removal is list-agnostic and safe to perform regardless of which list (external or kernel_bo_present) the bo happens to be linked on, or which code path is performing the final unpin. Drop the now-redundant explicit list_del_init() calls in xe_bo_unpin_external() and xe_bo_unpin(). v2: - New patch v3: - Rebased on changes to previous patch. (cherry picked from commit ca58d36a1f93af586ee93b340c9f9fd81312cc01)
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Local DRM ioctls reach patched xe_bo_account_unpin(): DRM_IOCTL_MODE_ATOMIC -> intel_atomic_commit -> intel_cleanup_plane_fb -> __xe_unpin_fb_vma -> xe_bo_unpin_account -> xe_bo_account_unpin; DRM_IOCTL_PRIME_FD_TO_HANDLE creates the competing pin through xe_dma_buf_pin(). AC:L - On a hybrid-GPU host, one client can import the exported Xe BO, scan it out, close the import so xe_bo_unpin_external() runs at pin_count 2, disable the plane for the final fb unpin, free the BO, and pin another BO to touch the stale list. No race or independent actor is required. PR:L - XE_GEM_CREATE and both PRIME ioctls are DRM_RENDER_ALLOW; DRM_MODE_ATOMIC requires DRM_MASTER, but drm_master_open() makes the first primary-node opener master when none exists without CAP_SYS_ADMIN. An unprivileged user granted the DRM device nodes therefore suffices. UI:N - The same process issues the PRIME, atomic modeset/disable, and close operations; no victim must mount, open, or approve anything. S:U - The freed xe_bo and xe->pinned.late.external are kernel-owned objects, and xe_bo_apply_to_pinned() corrupts memory within the same host kernel; no guest/host, IOMMU, or other security authority is crossed. C:H - After xe_ttm_bo_destroy() frees an xe_bo still linked by pinned_link, xe_bo_apply_to_pinned() treats reclaimed slab contents as a live BO and eviction reads its resource, reservation, backup_obj, and flags pointers. This exploitable UAF supports arbitrary kernel-memory disclosure. I:H - xe_bo_apply_to_pinned() calls list_move_tail() on the freed pinned_link; after heap reclaim, its attacker-shaped prev/next pointers feed list deletion writes, enabling arbitrary kernel-memory corruption and potential control-flow hijacking. A:H - Reusing or walking xe->pinned.late.external after kfree(bo), through another xe_bo_pin_external() or xe_bo_apply_to_pinned(), dereferences and writes freed memory, corrupting the list and causing an oops or kernel panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 44e694958b95395bd1c41508c88c8ca141bf9bd7 to < 3a11adcfd9a2de74d405bd3e8c4d7a1b328e4684 (affected · git)44e694958b95395bd1c41508c88c8ca141bf9bd7 to < b3eaff982839e5c22912d604cd8e7748cece8d63 (affected · git)44e694958b95395bd1c41508c88c8ca141bf9bd7 to < cf238c067eaae1cbfb00738e29219b9568d2313e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.8 (affected)0 to < 6.8 (unaffected · semver)6.18.57 through 6.18.* (unaffected · semver)7.2.11 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
drm/xe: Fix stale pinned_link entry when fb-pin performs the final unpin
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0ec9fc1672a22537c952e85e1d27e99c97032749a84c7867ca3032965f0ce3bd
- Ingested
- 24 Oct 2026, 14:14:52 UTC
- Source record
- Official CVE record