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 3BF7510E3 for ; Tue, 30 Jul 2024 07:48:27 +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=1722325708; cv=none; b=GLpq+Ixv75F8mF5Lh5vkX6idyeRJqTkVMI2NAVgXbndl7msS1ZMrg0QV938hsrHzCXqxn8LFNCCLyEuL/G3+AVMOzg5pyeHpliJLDqmfyjN1QJJaplKQAJUavLviEhx9ztFBzAdmpsU3F6RMCzk8grWNbbif9ulrFmYNBXoFP4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325708; c=relaxed/simple; bh=Jb5b76c94bYtXUOlFDRDAG+5t4mPtjRYnkGo/pTAk9s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uy2MXqfhDnlUrrcTXL2KOClymRW4MuHE3KUphy59cCndi38eAbWUWR0KdJKgSEAjiuJbWfSpDeTeJsFkHSnvCD/6Psyq5JWboTdEk5qrZmDypmBiRNt2Kr0e7pXEZW+6fVPR8F+PctIhm1LRmTbc2rDPlADe1LcUoAHPajHslrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fV4SJ38N; 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="fV4SJ38N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F0FAC32782; Tue, 30 Jul 2024 07:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325707; bh=Jb5b76c94bYtXUOlFDRDAG+5t4mPtjRYnkGo/pTAk9s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fV4SJ38NuhMvZuyQ02lS2ALSGa2JIVT1Rm1bP48n9xl/plqCXpbbi2AWPSdElFfDc c3GcL9KBlWTEe5pSoU4lh9T17C7qVhTGlWZiQxqPxEh3lLgq3Aq0d0aKTA6KilUnvk KMT3BbiXdgoOFWglL6xlXseZ8TPgb94Eb34gPbsw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42101: drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes Date: Tue, 30 Jul 2024 09:47:19 +0200 Message-ID: <2024073018-CVE-2024-42101-f246@gregkh> X-Mailer: git-send-email 2.45.2 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=2955; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Jb5b76c94bYtXUOlFDRDAG+5t4mPtjRYnkGo/pTAk9s=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZrU/eviJKbjj6+/PBQu7pvD/Pc059fAmR9Wot+/jh Z/Oml4v0hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOZjKME9p4iwTE7t443QZ 0a8z8pbmPLZ4Po9hnmFJM/8G6XXCWuuum19PM8/qmeawFQA= 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 null pointer dereference in nouveau_connector_get_modes In nouveau_connector_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The Linux kernel CVE team has assigned CVE-2024-42101 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 4.19.318 with commit 9baf60323efa Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 5.4.280 with commit e36364f5f378 Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 5.10.222 with commit 274cba8d2d1b Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 5.15.163 with commit f48dd3f19614 Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 6.1.98 with commit 1f3253523849 Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 6.6.39 with commit 744b229f0913 Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 6.9.9 with commit 7db5411c5d0b Issue introduced in 2.6.33 with commit 6ee738610f41 and fixed in 6.10 with commit 80bec6825b19 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-42101 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_connector.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/9baf60323efa992b7c915094529f0a1882c34e7e https://git.kernel.org/stable/c/e36364f5f3785d054a94e57e971385284886d41a https://git.kernel.org/stable/c/274cba8d2d1b48c72d8bd90e76c9e2dc1aa0a81d https://git.kernel.org/stable/c/f48dd3f19614022f2e1b794fbd169d2b4c398c07 https://git.kernel.org/stable/c/1f32535238493008587a8c5cb17eb2ca097592ef https://git.kernel.org/stable/c/744b229f09134ccd091427a6f9ea6d97302cfdd9 https://git.kernel.org/stable/c/7db5411c5d0bd9c29b8c2ad93c36b5c16ea46c9e https://git.kernel.org/stable/c/80bec6825b19d95ccdfd3393cf8ec15ff2a749b4