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 A64911C5F1B for ; Fri, 25 Jul 2025 14:32:28 +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=1753453948; cv=none; b=rpfMTUb7qT+ikvlMYrGc5ef0JtTccmF8RZyfKAL78umDrbK0ag0hc5csxf1fVlV1MItzCwgq58Xv9eK3gdHOy6RV+kscuNs9u4P5FT1ARZvSAxECqUwdD4XVwn7zAdVnAAJxq+IrpgiHH4J9IUu9VXX3deKcn6obBV8hf143aHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753453948; c=relaxed/simple; bh=Owifvpx9jgRnd7xBqFu/f6mA2ewiNuaZvOBBbP8Lz3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vp4iu77USfUD3ZmhFIMYTJ4hpHsqVwqiNX3xhW4aKYQptMGsdAcrymJFyAEsMMjDtdMOc1tNuUuY3o0JdstAIK3NVD5UfRZTUeFoiduL0C45kyepEvQ1Y4kEtF4jU3BGKXviAIVoJcT/Xvjff30SLoecKq13SHYFVuvZFm8irIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CR21S9wE; 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="CR21S9wE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BAD3C4CEE7; Fri, 25 Jul 2025 14:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753453948; bh=Owifvpx9jgRnd7xBqFu/f6mA2ewiNuaZvOBBbP8Lz3A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CR21S9wEOyyt8BI1lWy65u6chnkjawemsT6z6ZWXzTV4NGtj/BQPGQ3fWah8ZjzcF vzztzgTnSxZi2DSx/xJbA3/8aW/WjYmgRzFhUN/DKwHSBJqM1e7fMfA+8XBgBEiTd6 6CEaWrQ+vSeEDlPfg6vQF8iSPWqtBzjk+SVGKkQg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38436: drm/scheduler: signal scheduled fence when kill job Date: Fri, 25 Jul 2025 16:32:15 +0200 Message-ID: <2025072512-CVE-2025-38436-8cb6@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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CpfHJVx5fP7OJEMN4ZUZyMvPT6QxIz38eCo5MujB0J8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNU3O2rYqfs6Xp+R/LZdbPJp+dGn4s4uoSlaLjSmKTt u7QZE4/1RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATyeBimMVkZqjjWb43aInk 1d1MagtUHOJLLzAsWMPgsUzj1UKN93NeWO149fKGCa/YcwA= 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/scheduler: signal scheduled fence when kill job When an entity from application B is killed, drm_sched_entity_kill() removes all jobs belonging to that entity through drm_sched_entity_kill_jobs_work(). If application A's job depends on a scheduled fence from application B's job, and that fence is not properly signaled during the killing process, application A's dependency cannot be cleared. This leads to application A hanging indefinitely while waiting for a dependency that will never be resolved. Fix this issue by ensuring that scheduled fences are properly signaled when an entity is killed, allowing dependent applications to continue execution. The Linux kernel CVE team has assigned CVE-2025-38436 to this issue. Affected and fixed versions =========================== Fixed in 6.6.96 with commit c5734f9bab6f0d40577ad0633af4090a5fda2407 Fixed in 6.12.36 with commit aefd0a935625165a6ca36d0258d2d053901555df Fixed in 6.15.5 with commit aa382a8b6ed483e9812d0e63b6d1bdcba0186f29 Fixed in 6.16-rc1 with commit 471db2c2d4f80ee94225a1ef246e4f5011733e50 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-38436 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/scheduler/sched_entity.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/c5734f9bab6f0d40577ad0633af4090a5fda2407 https://git.kernel.org/stable/c/aefd0a935625165a6ca36d0258d2d053901555df https://git.kernel.org/stable/c/aa382a8b6ed483e9812d0e63b6d1bdcba0186f29 https://git.kernel.org/stable/c/471db2c2d4f80ee94225a1ef246e4f5011733e50