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 89FF42EBDD6 for ; Fri, 25 Jul 2025 12:48:39 +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=1753447719; cv=none; b=GcNWiLypBZxRnaTATwMAdk3DJgn9JIee1s+/BBQSmwIHyzA6StaYePtCR0etxzQTGqQ6bGtJ/40fNMdes2j2LDk47BYmdblTDaTWB6If5F/d9SzvP2u8NgBlz5je1+/R8qULgTV+GIdJ/dpjIKBqch6Jwnoia7epTCU+fgX2HTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447719; c=relaxed/simple; bh=n9EG9ZzWLj+UKawHxIErNDiGv+P4p7RrzRwtZuDf+Bk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jbPBUTkya50USDA0XhBrKP5KDw7kxUfaeLcN04CbHkzlCjYMpxhl2RFoyA0Oqk5pMLN4KuScLhovq0b/yzWhr8Nke/Dr4eotAZH/NF4s4KPgaYwNn98LR/jW75GlGEAEbY9NzyXCXHLmrm3M634VDBPBUMtOIuovhphRtMFORwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eVzlysCm; 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="eVzlysCm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C9B5C4CEE7; Fri, 25 Jul 2025 12:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753447719; bh=n9EG9ZzWLj+UKawHxIErNDiGv+P4p7RrzRwtZuDf+Bk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eVzlysCm1Z7E08f2+rmZa+oXy+5AIA+ekPiATjo2Fnm+Psxv/VWevAm3UbYk4pq9S 1u5TFkCvH7ltFH9BKsPhKy30ZkByZXZPwe1+zwSievU50AI+oRFtGBquHsWM0mG0tZ i4PgN/EbTHEahQi2Hv8o94+RGXgv3ytPzh86gZUs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38356: drm/xe/guc: Explicitly exit CT safe mode on unwind Date: Fri, 25 Jul 2025 14:47:57 +0200 Message-ID: <2025072555-CVE-2025-38356-286a@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2962; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yWwPeOJWU3EbrBM/jvg0Ep0Af5yPVEabEGo7r/d26OM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNNX8kL/I3urtvTvi/Z4Lhr7Z23e69qeZ7XT5x+9ocm T9x11vvjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIehTDXMmMicfOhcWzNG91 u7PPyybwZd6lHoYF597JcDM6rsl5P+/P21k/NWe6LhR8AgA= 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: Explicitly exit CT safe mode on unwind During driver probe we might be briefly using CT safe mode, which is based on a delayed work, but usually we are able to stop this once we have IRQ fully operational. However, if we abort the probe quite early then during unwind we might try to destroy the workqueue while there is still a pending delayed work that attempts to restart itself which triggers a WARN. This was recently observed during unsuccessful VF initialization: [ ] xe 0000:00:02.1: probe with driver xe failed with error -62 [ ] ------------[ cut here ]------------ [ ] workqueue: cannot queue safe_mode_worker_func [xe] on wq xe-g2h-wq [ ] WARNING: CPU: 9 PID: 0 at kernel/workqueue.c:2257 __queue_work+0x287/0x710 [ ] RIP: 0010:__queue_work+0x287/0x710 [ ] Call Trace: [ ] delayed_work_timer_fn+0x19/0x30 [ ] call_timer_fn+0xa1/0x2a0 Exit the CT safe mode on unwind to avoid that warning. (cherry picked from commit 2ddbb73ec20b98e70a5200cb85deade22ccea2ec) The Linux kernel CVE team has assigned CVE-2025-38356 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 09b286950f2911615694f4a1ff491efe9ed5eeba and fixed in 6.12.37 with commit 6d0b588614c43d6334b2d7a70a99f31f7b14ecc0 Issue introduced in 6.11 with commit 09b286950f2911615694f4a1ff491efe9ed5eeba and fixed in 6.15.5 with commit f161e905b08ae8a513c5a36a10e3163e9920cfe6 Issue introduced in 6.11 with commit 09b286950f2911615694f4a1ff491efe9ed5eeba and fixed in 6.16-rc4 with commit ad40098da5c3b43114d860a5b5740e7204158534 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-38356 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_ct.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/6d0b588614c43d6334b2d7a70a99f31f7b14ecc0 https://git.kernel.org/stable/c/f161e905b08ae8a513c5a36a10e3163e9920cfe6 https://git.kernel.org/stable/c/ad40098da5c3b43114d860a5b5740e7204158534