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 171571537C3 for ; Sun, 29 Dec 2024 11:31:10 +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=1735471871; cv=none; b=p2dmrflzMCtQs5SPpz40UVv8rAvsEAXSgoAu7Djj6NqJdw4RJGlWvHghrW2ey28A+5inOEzXkS1HVbBB6cJnMAn7wC06fHRl5iqIDJQJjZZ4Q/2h650OJ16NaJ7eMBK8kWLWVzDRxOoBOL8GJIqbMZ8N+Lobwq63FNxnhBfcC5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471871; c=relaxed/simple; bh=9mnHB2+twHX/chFEuofHtPt520EOXZRyNdvkbu5x+dE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oc6YnT5J88VZZHor/p5PAirNIpQJi2BK0PcOCDbzqG+vL+XsOG11GViTAydQ8cMw9DF9VbZX9I4K9fzA5eyGpXeRfoZfeSHVo1IWVIT5dObldeJ4eNF5HMKDYV4pXEu8x2enuqNptCwJb3/OluqM88qwEE0ic716rJgWgRQSvtE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X3Yr2ESk; 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="X3Yr2ESk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC46C4CED1; Sun, 29 Dec 2024 11:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471870; bh=9mnHB2+twHX/chFEuofHtPt520EOXZRyNdvkbu5x+dE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X3Yr2ESk9GOC3PoSM0hR4p32PufR0XOBMMr9V5M8y4gf2zYYXa0MNxO1tSS3RNIWE 5BqqTxkSYKTHvvzmGEwdOBRyO88j0ZL0Jezc7LEr8pPey/wvcAlTVxxTzRUuTaus/G rxM7CQBy00vaR/0ul4fTb/NB0VHw9WKrxp6j75y8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56752: drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new() Date: Sun, 29 Dec 2024 12:29:45 +0100 Message-ID: <2024122927-CVE-2024-56752-09d2@gregkh> X-Mailer: git-send-email 2.47.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=2492; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9mnHB2+twHX/chFEuofHtPt520EOXZRyNdvkbu5x+dE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmFRtPXiC5x+LK7WNYheK3DZrMZ859P7e3v7tzdrR4lL bQrcdmBjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgbsMCxb7spxs3Op/voAx rkBha+BzHzYPF4Z5umop7+R1F12wCdzLEJnAlnElVWM9AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new() When the call to gf100_grctx_generate() fails, unlock gr->fecs.mutex before returning the error. Fixes smatch warning: drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:480 gf100_gr_chan_new() warn: inconsistent returns '&gr->fecs.mutex'. The Linux kernel CVE team has assigned CVE-2024-56752 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit ca081fff6ecc63c86a99918230cc9b947bebae8a and fixed in 6.6.64 with commit 237f2dbfa00576bb1aa8dc2dce403c64e53270e6 Issue introduced in 6.2 with commit ca081fff6ecc63c86a99918230cc9b947bebae8a and fixed in 6.11.11 with commit 22b4a623c0f230540f02f4358744cce62ae12dbf Issue introduced in 6.2 with commit ca081fff6ecc63c86a99918230cc9b947bebae8a and fixed in 6.12.2 with commit 24b1df744ef444f9846f52de4985790a5fd1c0de Issue introduced in 6.2 with commit ca081fff6ecc63c86a99918230cc9b947bebae8a and fixed in 6.13-rc1 with commit a2f599046c671d6b46d93aed95b37241ce4504cf 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-2024-56752 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/nvkm/engine/gr/gf100.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/237f2dbfa00576bb1aa8dc2dce403c64e53270e6 https://git.kernel.org/stable/c/22b4a623c0f230540f02f4358744cce62ae12dbf https://git.kernel.org/stable/c/24b1df744ef444f9846f52de4985790a5fd1c0de https://git.kernel.org/stable/c/a2f599046c671d6b46d93aed95b37241ce4504cf