Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4759B382BF0 for ; Tue, 16 Dec 2025 13:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892688; cv=none; b=c5OOxf9DUwg+kajcBHf8yG//S7PxyhXoACiVXvvNCTLez//D2wVkrY8OVGREYu8Hkc68Qva+22mUQ6KQwucJ6J84xO4ovknAUukYB2TlmzI8QuQcNJtEYvZzFj8tPJZHJr5adn+lnSHNPQVmnM/t2J1QMHQMB9UW5KCyZfliIyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892688; c=relaxed/simple; bh=w/HuYqH7dE/bu74ycglfdeGXR2k8re9xtop18VhUJjo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ond5eST+GLtXEtpmbW12hVoMaPPJkbyUA1tYvwC0qFEiy6bRI/YFDNW8Hf3xZjywECoN/weJFeMrK2Y4s01T3EOlMNw9yrKDseJky7j9TYqVjL05rgfgb3e4RCMOXeIkZuf71V5OA/V9VREK+sYVxOM6u9hJCq9pL8vIeqCS69c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=auTgVPTC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="auTgVPTC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3EEAC4CEF1; Tue, 16 Dec 2025 13:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892688; bh=w/HuYqH7dE/bu74ycglfdeGXR2k8re9xtop18VhUJjo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=auTgVPTCRUnAb/jg1njaxARalHJY/h5rB6bqCbc6X5WX+/l/DZpH8A6dmGX8vSmcw lJWp8H1NmiYjW/8eWyhDqyUA8Sd+M7PjxC+HrbsqZLmdUvWq2/UP4RAXHLdWsn07UQ HPnBflnhPXr8mOo1SeAi0KRHyPMMjhjzGX3m0JRg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68193: drm/xe/guc: Add devm release action to safely tear down CT Date: Tue, 16 Dec 2025 14:43:54 +0100 Message-ID: <2025121635-CVE-2025-68193-2474@gregkh> X-Mailer: git-send-email 2.52.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=2545; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=crf5LOf6M0eQ1LgCesExIss0XDeR75k7uEzzHoD+ayI=; b=kA0DAAIRMUfUDdst+ykByyZiAGlBYgihO0khRtg5DpjK+gqh9vx3cYfv2+lhnO2+DO8KVtcr7 IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmlBYggACgkQMUfUDdst+ylYUgCeNarj 11+dXr+9nqOIOuvBCpRFktYAoLBXgKyEuW5BuZs8sVkCGhRCUvb4 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/guc: Add devm release action to safely tear down CT When a buffer object (BO) is allocated with the XE_BO_FLAG_GGTT_INVALIDATE flag, the driver initiates TLB invalidation requests via the CTB mechanism while releasing the BO. However a premature release of the CTB BO can lead to system crashes, as observed in: Oops: Oops: 0000 [#1] SMP NOPTI RIP: 0010:h2g_write+0x2f3/0x7c0 [xe] Call Trace: guc_ct_send_locked+0x8b/0x670 [xe] xe_guc_ct_send_locked+0x19/0x60 [xe] send_tlb_invalidation+0xb4/0x460 [xe] xe_gt_tlb_invalidation_ggtt+0x15e/0x2e0 [xe] ggtt_invalidate_gt_tlb.part.0+0x16/0x90 [xe] ggtt_node_remove+0x110/0x140 [xe] xe_ggtt_node_remove+0x40/0xa0 [xe] xe_ggtt_remove_bo+0x87/0x250 [xe] Introduce a devm-managed release action during xe_guc_ct_init() and xe_guc_ct_init_post_hwconfig() to ensure proper CTB disablement before resource deallocation, preventing the use-after-free scenario. The Linux kernel CVE team has assigned CVE-2025-68193 to this issue. Affected and fixed versions =========================== Fixed in 6.17.8 with commit 52faa05fcd9f78af99abebe30a4b7b444744c991 Fixed in 6.18 with commit ee4b32220a6b41e71512e8804585325e685456ba 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-2025-68193 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/xe_guc.c drivers/gpu/drm/xe/xe_guc_ct.c drivers/gpu/drm/xe/xe_guc_ct.h 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/52faa05fcd9f78af99abebe30a4b7b444744c991 https://git.kernel.org/stable/c/ee4b32220a6b41e71512e8804585325e685456ba