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 AF6A725D1F1 for ; Tue, 20 May 2025 15:23: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=1747754628; cv=none; b=mLyCA9pNuvy9F0DLOg++wUn51NAAQC1s6AHsGXIiqjeJ+ZN21xIx5KE0si4jKbXGUxt5xab4FteXnR6Dh0aqTw0M+Pu05jd1oxcvvrnNJN0YU4X6z4vIka0KXQ+CYInxhq8ZuPF1AUfRrHcCV3HU1V7Pwh80e6Sy+Rn9cwwlWeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754628; c=relaxed/simple; bh=4QuUd35Y2QZrbQoYeeM27BmlBX5qmhayn8gFhlM0vMI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xim9LbjY4sqRRquJK5mrwK0umjEqmX6x94M2VI7L8dOg1mLL+OYFpXExXPvSpxP4fE0DaXNeiHXHT1irW8V+wNxanhctEUnuOl0GwMvo+ohI6ZgDGiMQH3rO4vfXSNGV8HslxLvK/bG56SJXvMHw4Vk0GQcDbKxmzgLyBRrfhN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XU8jpRjw; 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="XU8jpRjw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6CFEC4CEE9; Tue, 20 May 2025 15:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754628; bh=4QuUd35Y2QZrbQoYeeM27BmlBX5qmhayn8gFhlM0vMI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XU8jpRjwWThVjmkm1wo3g2JTKcixuLo0awYHTuRTOy6h0rnWBwzYGVQDAIn2IZght UUoiIeWJ+hdcPf5qyTNY1XGuzODYW1TCxoOt7Kb1DdcqOxNnUyyp+x/t7pClMJ8usX 0XcV6d5tM7zn2qEYTGqRwcSJYzBTFk5OK4otFz0E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37930: drm/nouveau: Fix WARN_ON in nouveau_fence_context_kill() Date: Tue, 20 May 2025 17:22:26 +0200 Message-ID: <2025052005-CVE-2025-37930-24fe@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=3271; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=o9brRJ+a9ccrcqsbd+HtcA1HAZ2YIMqiO58ehMhcsiA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk682TLVuQdj+7pY3Z/uNhe4caWB/uPe59RkROXkE1/G Tl3yomMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIj4MMCw7f+NWS/+aSiOr6 1z6eAf8EP/zN+MQwPzTkW0DDPUUb8e0PP/oe/P+5uHheEQA= 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/nouveau: Fix WARN_ON in nouveau_fence_context_kill() Nouveau is mostly designed in a way that it's expected that fences only ever get signaled through nouveau_fence_signal(). However, in at least one other place, nouveau_fence_done(), can signal fences, too. If that happens (race) a signaled fence remains in the pending list for a while, until it gets removed by nouveau_fence_update(). Should nouveau_fence_context_kill() run in the meantime, this would be a bug because the function would attempt to set an error code on an already signaled fence. Have nouveau_fence_context_kill() check for a fence being signaled. The Linux kernel CVE team has assigned CVE-2025-37930 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 5.15.182 with commit 2ec0f5f6d4768f292c8406ed92fa699f184577e5 Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.1.138 with commit 47ca11836c35c5698088fd87f7fb4b0ffa217e17 Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.6.90 with commit 126f5c6e0cb84e5c6f7a3a856d799d85668fb38e Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.12.28 with commit b771b2017260ffc3a8d4e81266619649bffcb242 Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.14.6 with commit 0453825167ecc816ec15c736e52316f69db0deb9 Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.15-rc5 with commit bbe5679f30d7690a9b6838a583b9690ea73fe0e9 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-37930 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/nouveau/nouveau_fence.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/2ec0f5f6d4768f292c8406ed92fa699f184577e5 https://git.kernel.org/stable/c/47ca11836c35c5698088fd87f7fb4b0ffa217e17 https://git.kernel.org/stable/c/126f5c6e0cb84e5c6f7a3a856d799d85668fb38e https://git.kernel.org/stable/c/b771b2017260ffc3a8d4e81266619649bffcb242 https://git.kernel.org/stable/c/0453825167ecc816ec15c736e52316f69db0deb9 https://git.kernel.org/stable/c/bbe5679f30d7690a9b6838a583b9690ea73fe0e9