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 35DB615A876 for ; Mon, 29 Jul 2024 15:49:35 +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=1722268175; cv=none; b=hMgzJerZbuaUo5BeJQRdjh0x3OJtiTiIoHSQkVamURUn4fP0KTfX1LDA8mN6xyeowjo4LoHqiXKhgrcBDxU7Q71gevpCURS1u77iQAnkRgxEbu0hdQCKLlv6E2m3k3mLzZfqsN4HV7iavfXccb8UPwv9oXnco460TJtrYfJUyjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268175; c=relaxed/simple; bh=YQvotwenmCXAV6iKIcxvRmQDKqpyMjHeuE3qujni2oI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eshyF5m2VjNwaSNlPl5NDnOEilTZdv2E8Oy6qi0MxIpZgzcYBkOzTb/4exvB5F+1c2lzQae3kiwm+rF8K6bjdLduC0eEG1HHtd/SMTWWJcBcobEnyRV0Eotp5rFfapgVQDuUtSQjFtY9oAHbGUWQ97/LUMdxUtmHAfljlZYJJw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kGwU4BzX; 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="kGwU4BzX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BDC9C4AF0E; Mon, 29 Jul 2024 15:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268175; bh=YQvotwenmCXAV6iKIcxvRmQDKqpyMjHeuE3qujni2oI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kGwU4BzXSkfuZnw6VRUf4+P7Rc2qi+vWUx9g9YfmGhfJr6JZZxe/cUVLAE35VaLGV ivoaBBpdMNsLcXSDCYIHYLMxdmT5mKOGfE8cQsjBpO9T+40P/TxnOTUx3W9p3atCV+ 06JY8YS1Ev6Ybectc+wXl+Gw8nHYg7usiYQd+plw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41089: drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes Date: Mon, 29 Jul 2024 17:48:53 +0200 Message-ID: <2024072952-CVE-2024-41089-5d63@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=2558; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YQvotwenmCXAV6iKIcxvRmQDKqpyMjHeuE3qujni2oI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLdz5Z5i/1KGlul/8t4/r/c5Qyc+sbY2/Ki7Zkr654F 3ro/HeWjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI1dMMs1n5BHrDVv3m3DUh cIHT0n+Zmqt0LzHML7//3dJEX2qBYvjFqOdbvnDfZXD+BAA= 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/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes In nv17_tv_get_hd_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(). The same applies to drm_cvt_mode(). Add a check to avoid null pointer dereference. The Linux kernel CVE team has assigned CVE-2024-41089 to this issue. Affected and fixed versions =========================== Fixed in 4.19.317 with commit ffabad4aa91e Fixed in 5.4.279 with commit 1c9f2e60150b Fixed in 5.10.221 with commit 56fc4d3b0bde Fixed in 5.15.162 with commit 5eecb49a6c26 Fixed in 6.1.97 with commit 30cbf6ffafbb Fixed in 6.6.37 with commit 7ece609b0ce7 Fixed in 6.9.8 with commit 6e49a157d541 Fixed in 6.10 with commit 6d411c8ccc01 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-41089 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/dispnv04/tvnv17.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/ffabad4aa91e33ced3c6ae793fb37771b3e9cb51 https://git.kernel.org/stable/c/1c9f2e60150b4f13789064370e37f39e6e060f50 https://git.kernel.org/stable/c/56fc4d3b0bdef691831cd95715a7ca3ebea98b2d https://git.kernel.org/stable/c/5eecb49a6c268dc229005bf6e8167d4001dc09a0 https://git.kernel.org/stable/c/30cbf6ffafbbdd8a6e4e5f0a2e9a9827ee83f3ad https://git.kernel.org/stable/c/7ece609b0ce7a7ea8acdf512a77d1fee26621637 https://git.kernel.org/stable/c/6e49a157d541e7e97b815a56f4bdfcbc89844a59 https://git.kernel.org/stable/c/6d411c8ccc0137a612e0044489030a194ff5c843