Bug 2513452 (CVE-2026-68264) - CVE-2026-68264 kernel: drm/xe/pt: Reset current_op in xe_pt_update_ops_init()
Summary: CVE-2026-68264 kernel: drm/xe/pt: Reset current_op in xe_pt_update_ops_init()
Keywords:
Status: NEW
Alias: CVE-2026-68264
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 12:38 UTC by OSIDB Bzimport
Modified: 2026-08-13 15:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-10 12:38:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/xe/pt: Reset current_op in xe_pt_update_ops_init()

xe_pt_update_ops_init() fails to reset current_op to 0. On the
vm_bind path, ops_execute() calls xe_pt_update_ops_prepare() inside
the xe_validation_guard() / drm_exec_until_all_locked() loop. When
that loop retries due to lock contention or OOM eviction
(drm_exec_retry_on_contention() / xe_validation_retry_on_oom()),
xe_pt_update_ops_prepare() runs again on the same vops, and each
call to bind_op_prepare() increments current_op without resetting it.

After N retries current_op exceeds the array size allocated by
xe_vma_ops_alloc(), causing an out-of-bounds write into
SLUB-poisoned memory and a subsequent UAF crash in
xe_migrate_update_pgtables_cpu() when reading the corrupted pt_op->bind.

Also reset needs_svm_lock and needs_invalidation which are derived in
the same prepare pass and would otherwise cause wrong migrate ops
selection and redundant TLB invalidation on retry.

Fix this by resetting current_op, needs_svm_lock and needs_invalidation
in xe_pt_update_ops_init().

v2 (Matt):
   - Add details in commit message.
   - Add Fixes tag and Cc to stable.org

(cherry picked from commit 046045543e530605c441063535e7dca0075369a6)

Comment 1 Mauro Matteo Cascella 2026-08-11 11:36:45 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081023-CVE-2026-68264-6281@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.