Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA37648CD63 for ; Fri, 25 Sep 2026 10:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332115; cv=none; b=ftI9UaBRw79eS64hNGYc9SHR0JlkWfGc8QlMFyuQbI/6+B2E71wdyxB6o2BllWGQ4Rc4iApbuebHfNwQFXpU3iP33vxOCNsYDL3uwRm2aSkwrVQnoA02ELo87jaj14NNgsyt5rHDmxYnOnmFoGWKWCV7QCoivNfvkeWJo5/B9UY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332115; c=relaxed/simple; bh=iUiiHyFAPeC3EpTdLkSC5hA0OZd6jvKh+MN57+ohAig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UHxkusDgf+yEnwrX5Tm0lHZ74tHkkd8SplpcvugVgyJnpKE+kGQznrfL0OYNz7JmSDcW5yKB7Q2VIjASV0aX4cAX1+vWtvbxPlT/FB76CGMHKhY1N6kYDvzf8GQgcNL5PdpqsBHAkzUsl9skAuwC0XWmgZq5NIOAPw/RCAdmQ0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XtRooY1v; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XtRooY1v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40D971F000FF; Fri, 25 Sep 2026 10:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332113; bh=bCy+oYBVitBAG5majDX/pWV7bFUUxaU4XX2IkESmeB4=; h=From:To:Cc:Subject:Date:Reply-To; b=XtRooY1vu+WsplBtaHQ4Ri1IOSZWrapZJNZooiWjX5ifZp8GoHCaT38rbtAsYhTzN HdiXMSgV6oJa/9AmEkyySTCINkxIuqUKQv5TKoFSsH2FEPv4WA24+u2cU1Gg43OMcO PJcfKvUWoHb7/tZ1yC92upOH/mWYL0PEdFJE/6oY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97620: drm/xe: Flush LSC untyped L1 dataport cache after rcs/ccs batches Date: Fri, 25 Sep 2026 12:23:20 +0200 Message-ID: <2026092503-CVE-2026-97620-8074@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4434; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sb8NQQucmqph62BAue1ARj9tYN7T4AASRBXvZ62rD1I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvH1mKYu8k1szteWKzDw59mbF1H1C73Yw5pmfquU+E z4ttXZHRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEeSXDgrkur38JGtfs6Ozf HvKVX2KPxrIHHxkWrN5jExp1Z8KFNyv4n35Y6Jq+dJN7FgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/xe: Flush LSC untyped L1 dataport cache after rcs/ccs batches emit_render_cache_flush() sets PIPE_CONTROL0_HDC_PIPELINE_FLUSH to flush the L2/HDC data cache before fence signalling, but it never requests a flush of the LSC untyped L1 data cache via the 'Untyped Data-Port Cache Flush Enable' bit in PIPE_CONTROL DWord0[11]. Per the Bspec, in 3D pipeline mode HDC Pipeline Flush is documented to also flush/invalidate the untyped L1 cache, but only depending on how HDC_CHICKEN0[13:11] is programmed. Starting with MTL, this coupling between HDC Pipeline Flush and the untyped L1 cache flush no longer holds in practice, regardless of how HDC_CHICKEN0 is programmed, so relying on it is not safe on newer platforms such as BMG. Mesa's Vulkan driver (anv) has been assuming the kernel flushes both caches between submissions, and hit user-visible corruption in apps such as Llama.cpp because of this gap; it now works around it by flushing both caches again from userspace at the end of every command buffer. Correctness between submissions on the same queue is userspace's responsibility and belongs in Mesa, not the kernel. However, for security we must ensure stale data can't leak through the untyped L1 dataport cache once memory is reclaimed or evicted, which requires the KMD to flush it before releasing memory for reuse. Prior to MTL, HDC_CHICKEN0 could be programmed (as already done for DG2 via Wa_22010960976/Wa_14013347512) to reliably keep HDC Pipeline Flush coupled to the untyped L1 cache flush, so those platforms are unaffected. Mesa's own anv driver found that on MTL the HW disconnected the two independently of how HDC_CHICKEN0 is programmed, and could not bring the old behavior back even by writing the register by hand; see Mesa commit 7c2ff46a4fc3 ("anv: don't prevent L1 untyped cache flush in 3D mode"). The kernel can't reliably request the flush from the CS on MTL either, so restrict the new PIPE_CONTROL bit to GRAPHICS_VERx100 >= 2000 (Xe2 and later), where it can be relied on. Explicitly set PIPE_CONTROL0_UNTYPED_DATAPORT_CACHE_FLUSH together with PIPE_CONTROL0_HDC_PIPELINE_FLUSH in emit_render_cache_flush() on Xe2 and later, so the L1 data cache is known clean before memory is released for reuse, without depending on undocumented platform-specific HDC_CHICKEN0 behavior. Bspec: 56551 (cherry picked from commit 434514b6fe731e873808297c268fc52cdf4a1ce6) The Linux kernel CVE team has assigned CVE-2026-97620 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 9f8f93bee3efdba3bf7853befe2219e3a300c305 and fixed in 6.18.53 with commit fab569a69c3ae9beced68307e36048efa2709bec Issue introduced in 6.8 with commit 9f8f93bee3efdba3bf7853befe2219e3a300c305 and fixed in 7.2.7 with commit 92393fc5227b2b701f2b1530c9cd6dac6ee90b71 Issue introduced in 6.8 with commit 9f8f93bee3efdba3bf7853befe2219e3a300c305 and fixed in 7.3-rc3 with commit f5fcf7e638b904397ec0f66d3ea6766ef0cfe25b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97620 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/xe/instructions/xe_gpu_commands.h drivers/gpu/drm/xe/xe_ring_ops.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fab569a69c3ae9beced68307e36048efa2709bec https://git.kernel.org/stable/c/92393fc5227b2b701f2b1530c9cd6dac6ee90b71 https://git.kernel.org/stable/c/f5fcf7e638b904397ec0f66d3ea6766ef0cfe25b