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 5374D4177E for ; Fri, 17 May 2024 12:25:24 +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=1715948724; cv=none; b=XQ7cVgMh4S63b7IuIPX+b715TewtmhWxcRQiz4dNoKnlYBi9NdcCGoY73JxEgmbzp+RIWUVr8tFyfQIBTDwIgj1Ee4+J3fF8bVAjWqba93K+mq7ScU/qPQnOqPE2EhlttpkczYovgymy17xZgnQx1K3s/HKq0EpQ4sVth3Nshsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715948724; c=relaxed/simple; bh=S+RGX2UNREDyVViOh6FTv8vjFnS0gbTijt6wQz57o50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=onrWFLBXkUOr7Z3N1wCQq01BQPGLAhzYHpFMLyFziuFP2yOrUBr7NWyzyX3SOR1bS9+cgz6i4GISIS+SpiwT8iahHBWUsHdQC4LTqBWmxeqQk6MVPDjcov9ccAuBLCcDSIeYCC4oFuoZmozZzsUDMxE/GJCjunmGi+kAb22JHoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SPx65l7q; 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="SPx65l7q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CB2EC2BD10; Fri, 17 May 2024 12:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715948723; bh=S+RGX2UNREDyVViOh6FTv8vjFnS0gbTijt6wQz57o50=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SPx65l7q0e0LozReoIKbaIaPGi41uWoF21j8BQFjPTJaHjEho1abhb2MgPhBPYGII +pxLyLbMtx0+qbuX4pamSVcvKP3H2NEIUYxnX2FLy2jB5Jn4ACWPiSJH0+IRNDZ9a1 BMSgRfo3DY/R/Dtidc6lZ017Thkb7+7EVTgppmPA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35786: drm/nouveau: fix stale locked mutex in nouveau_gem_ioctl_pushbuf Date: Fri, 17 May 2024 14:25:07 +0200 Message-ID: <2024051707-CVE-2024-35786-0d93@gregkh> X-Mailer: git-send-email 2.45.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=2126; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S+RGX2UNREDyVViOh6FTv8vjFnS0gbTijt6wQz57o50=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuPoultjsFbpF9o3w6eWOb4tLjvyaX7cl69uPxo1trf rDs7lMR6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICLrGZY0HzP2G+rzlPuHkll kZ0TlX9H2H44xDDfJa36dFWhseerBNaDa1V15Cc9mtoOAA== 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: fix stale locked mutex in nouveau_gem_ioctl_pushbuf If VM_BIND is enabled on the client the legacy submission ioctl can't be used, however if a client tries to do so regardless it will return an error. In this case the clients mutex remained unlocked leading to a deadlock inside nouveau_drm_postclose or any other nouveau ioctl call. The Linux kernel CVE team has assigned CVE-2024-35786 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.6.24 with commit c288a61a48dd Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.7.12 with commit b466416bdd6e Issue introduced in 6.6 with commit b88baab82871 and fixed in 6.8 with commit daf8739c3322 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-35786 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_gem.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/c288a61a48ddb77ec097e11ab81b81027cd4e197 https://git.kernel.org/stable/c/b466416bdd6ecbde15ce987226ea633a0268fbb1 https://git.kernel.org/stable/c/daf8739c3322a762ce84f240f50e0c39181a41ab