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 0E9B8242922 for ; Fri, 25 Jul 2025 12:48:07 +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=1753447688; cv=none; b=sA9GBKAdnNLL6z3uwONXQhHMeLfDUK2iQYq8RKsDmgKMG1z1F8gNVgUqZhRQreeYlnqlfIXo5V9QxZLdDvTOl9e7qGc6YgaPzwr9hIGbrXK/OJqOvWkL4bZ+qKgRaeSMYMH/robzisem2V6v4txBo5jlYwzUDTG+z2nvxyl90j0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447688; c=relaxed/simple; bh=3Mb2NyobMyDNEDCZuUhlYg9PxOfflrPIl2n5p7A3iO0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eBbF2MpsMxdkgbOlS21lWxmDVfb81A02NhAAZ6zO71xDNiNZmnRRULYvfI4pPzo14FIrTV/Jow/NzRt3mzuwmIGm9M1Qyypx42FKEXJqCJrh4JHHDaQr0OJLyIXbdqg1+2DIe8Bd3VIZW/3Rm05otiHJ7O0T1lnFN7WcWDz+I44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2tLMC2Uv; 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="2tLMC2Uv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E972C4CEE7; Fri, 25 Jul 2025 12:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753447687; bh=3Mb2NyobMyDNEDCZuUhlYg9PxOfflrPIl2n5p7A3iO0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2tLMC2Uv0rQ5Z9cOZdSNexY7p+9eyOu02r2h8TlFFMWRqNnuw+C0TzYMsnMR3DE7f JK6FM87uKGXmU67kSrkH/kC1pcQLH/sVI3VkJEBNkK16QmffsjmOErNOdxptfcbYEb YbrONHZyJs91Tid9THzpqTHq6XHkvdcC6z4k3c+U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38353: drm/xe: Fix taking invalid lock on wedge Date: Fri, 25 Jul 2025 14:47:54 +0200 Message-ID: <2025072553-CVE-2025-38353-a9eb@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=2334; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KCDYQ3MjVUYvM2HLfHIiK0EQM6PnZnJL5VWYW7NRpFg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNNT991Z6bnzO4b16/MVBqpvQGx8fBTdPnPJytmsWx0 aaw5NqNjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIqzfD/LK/SzrOspsw3qxr mqfKzPP04fc3Ogzzk+ruvNm2e5P32pQFew/fjDNvlnitCwA= 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: Fix taking invalid lock on wedge If device wedges on e.g. GuC upload, the submission is not yet enabled and the state is not even initialized. Protect the wedge call so it does nothing in this case. It fixes the following splat: [] xe 0000:bf:00.0: [drm] device wedged, needs recovery [] ------------[ cut here ]------------ [] DEBUG_LOCKS_WARN_ON(lock->magic != lock) [] WARNING: CPU: 48 PID: 312 at kernel/locking/mutex.c:564 __mutex_lock+0x8a1/0xe60 ... [] RIP: 0010:__mutex_lock+0x8a1/0xe60 [] mutex_lock_nested+0x1b/0x30 [] xe_guc_submit_wedge+0x80/0x2b0 [xe] The Linux kernel CVE team has assigned CVE-2025-38353 to this issue. Affected and fixed versions =========================== Fixed in 6.12.36 with commit a6d81b2d7037ef36163ad16459ed3fd17cb1b596 Fixed in 6.15.5 with commit 20eec7018e132a023f84ccbdf56b6c5b73d3094f Fixed in 6.16-rc1 with commit 1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d 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-38353 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_submit.c drivers/gpu/drm/xe/xe_guc_types.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/a6d81b2d7037ef36163ad16459ed3fd17cb1b596 https://git.kernel.org/stable/c/20eec7018e132a023f84ccbdf56b6c5b73d3094f https://git.kernel.org/stable/c/1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d