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 1F63B26A09A for ; Fri, 9 May 2025 06:44:36 +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=1746773076; cv=none; b=AhpC21K1fKoq0XEXtdW+/YVZxpg7WpR7J0r2dP7kRwKeUVqe9NvEm29ol9e4no4JMJPwTrf4E83EzCHGV4fXoBzOgrbfE0xNt32r93CkKnZxE2g1angT0xqasfdZ7lNyR8IJkjnDumL5usHKDqYoU6NpRuC7v+ECU8bqgJ6vJdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773076; c=relaxed/simple; bh=nPmHwLwBtNzcnUcNlD4siuGYL0PumjWrHFiNZNmZk0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=crtCHj2ynrTlUyAO6mXf4q/GOQev/UTJ5udhnFsSnktXba8WzjOL5mtRo/VPW4Jt+vn3pM51uvcSvV+T+7/ubaSfP7HICXHOkdxXGMEWza47FKAHEVoQe9JoD8R7EOebpTT+QRVd7v5TlwxZwgvRbPlPT9PuVePsgWzcp8q4pq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1wk4NGjz; 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="1wk4NGjz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6C46C4CEE4; Fri, 9 May 2025 06:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773076; bh=nPmHwLwBtNzcnUcNlD4siuGYL0PumjWrHFiNZNmZk0k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1wk4NGjzGH6pObkYvhakPipR6/txEj3nyrYtxVYPGf0/DQVcRO6LnF9herhyz8j9R 2COFkQ2WoghCS7f3BTjNSkhNJUm+hYpoF6s/W9J/T8XSOEZDTmYtLcvQAw0CA9HaDD lZ7/z9c+gkcdUDwG0dVc+0HGKIGrP63twJf/btJw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37869: drm/xe: Use local fence in error path of xe_migrate_clear Date: Fri, 9 May 2025 08:44:03 +0200 Message-ID: <2025050958-CVE-2025-37869-09b8@gregkh> X-Mailer: git-send-email 2.49.0 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=2347; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NEQXJ8gOk+nbzHZV6ibJbBnX/y3PeiNEDaZMnQeNdMk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS/SvxJRy6jDd+ONxhm1t++PsHyvkfZdI/957/7Ozn 6dz2N3GjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIvgTDfPe1nouYZ4n0yHi6 nj726ct64Qd3FBkW7O9exnbT4pLMSuUDNpdjOwxWzjH0BgA= 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: Use local fence in error path of xe_migrate_clear The intent of the error path in xe_migrate_clear is to wait on locally generated fence and then return. The code is waiting on m->fence which could be the local fence but this is only stable under the job mutex leading to a possible UAF. Fix code to wait on local fence. (cherry picked from commit 762b7e95362170b3e13a8704f38d5e47eca4ba74) The Linux kernel CVE team has assigned CVE-2025-37869 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.12.25 with commit 2ac5f466f62892a7d1ac2d1a3eb6cd14efbe2f2d Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.14.4 with commit dc712938aa26b001f448d5e93f59d57fa80f2dbd Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.15-rc2 with commit 20659d3150f1a2a258a173fe011013178ff2a197 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-37869 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_migrate.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/2ac5f466f62892a7d1ac2d1a3eb6cd14efbe2f2d https://git.kernel.org/stable/c/dc712938aa26b001f448d5e93f59d57fa80f2dbd https://git.kernel.org/stable/c/20659d3150f1a2a258a173fe011013178ff2a197