CVE-2026-68384
Received Received - Intake

Race Condition in Linux Kernel's DRM/XE VF CCS Handling

Vulnerability report for CVE-2026-68384, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: drm/xe/vf: Fix VF CCS attach/detach race with in-flight BO moves xe_bo_move() attaches VF CCS read/write batch buffers (BBs) to a BO after it transitions NULL/SYSTEM -> TT, and detaches them after it transitions TT -> SYSTEM. Both operations were done synchronously on the CPU immediately after building the move's copy/clear fence, without waiting for that fence to signal. This creates two races with VF migration: - Attach happens too late relative to the copy job it is meant to protect. If the copy job is submitted before the CCS BBs are attached, a VF migration event that pauses execution mid-copy can observe partially copied CCS metadata without the attach state needed to correctly save/restore it. - Detach happens too early relative to the copy job that moves data out of TT. The CCS BBs are torn down right after the copy fence is obtained, while the actual blit may still be in flight. A VF migration event that pauses execution mid-copy can then race the save/restore path against the still-running blit, and the CCS BBs it would need to make sense of the paused state have already been removed. Fix both races: - Move the attach call to before the copy/clear job is submitted, so the CCS BBs are already registered by the time the copy runs. On attach failure, unwind and bail out of the move. xe_migrate_ccs_rw_copy() now takes the destination resource explicitly, since bo->ttm.resource is not updated to the new resource until after the move commits. - Detach only after explicitly waiting for the copy fence to signal, instead of tearing down the CCS BBs immediately after obtaining it. While here, also fix xe_sriov_vf_ccs_attach_bo() to properly unwind and propagate errors: the per-context loop previously never broke out on error, silently discarding earlier failures. Unwind by clearing each attached context directly via xe_migrate_ccs_rw_copy_clear() instead of reusing xe_sriov_vf_ccs_detach_bo(), which requires both contexts to be attached before it will clean up either one. (cherry picked from commit d45ad0aa7a1eb5d7288b5ed948b05695611dc39e)

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux_kernel linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a race condition in the drm/xe/vf driver when handling virtual function (VF) migration. The issue occurs when attaching or detaching batch buffers (BBs) for CCS read/write operations during buffer object (BO) moves. The attach happens too late and detach too early relative to copy jobs, which can lead to partially copied metadata or missing CCS BBs during VF migration events.

Detection Guidance

This vulnerability is specific to the Linux kernel's DRM/XE driver for virtual functions (VF) and involves a race condition in CCS (Command Context Switch) attach/detach operations. Detection requires kernel-level inspection and may not have direct network-based detection methods. Check kernel logs for errors related to xe_bo_move() or VF migration events. Commands like dmesg | grep xe or journalctl -k | grep xe may help identify issues.

Impact Analysis

This vulnerability could cause data corruption or system instability during VF migration in systems using the Linux kernel's drm/xe/vf driver. It may lead to crashes, incorrect data handling, or security issues if CCS metadata is not properly saved or restored during migration.

Mitigation Strategies

Apply the latest kernel update that includes the fix for CVE-2026-68384. If immediate patching is not possible, disable VF migration for affected devices or restrict access to virtual functions until the update is applied. Monitor kernel logs for signs of the race condition.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68384. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart