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 6AEFE1553A1 for ; Mon, 29 Jul 2024 15:49:07 +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=1722268147; cv=none; b=pQ0zPKAZ4h1+n9U+QcAgskI0ZdnaZixJDGgOCRf8F0O4+FYfR5wh8Z+BEvJTl1oGEwL1Mt4E5AGu28urflNdJwhDopxz+x6Ch4CycsfcbDxwi+brk7R4QpZ3OSrwzXuAc6AFIEtPvRAeraOy+s83vVVgXBg0cDEJ7o00vlgYfDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268147; c=relaxed/simple; bh=c0ZMrW2u5V3MS3Pvs/yPyswFZ5HldT7ntZCAqogB2Ac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jxCO8+1I6SGpNDFU49JChm1hdKreDEreOy4GUQWDQXpOhkYrpJMMPfoMRP31ETGYzZEdI4YLJ17iM8fNqyQhdTNHOyXg0LmZpyU20BtUESKHnh/+YqPuFEowerR2kC2wrJ33etWovhCaRpBprOBZhHcSfWuRXeFrXjMt1rHNecw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hRJiSYfz; 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="hRJiSYfz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1518C32786; Mon, 29 Jul 2024 15:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268147; bh=c0ZMrW2u5V3MS3Pvs/yPyswFZ5HldT7ntZCAqogB2Ac=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hRJiSYfzJdWIuTVXvjhdd7iL2eBj7opg54EMhfJoVRmCtNc0Isl89nSL6J9H1iYyd E9kVjvxJ+8nlrk3L4L+iYgz8MA902n1km/vXaJd0VxLuUKd07l8VlRyYS5j5C50SAM G0y860RcAdqHcXPTiZLlDXKAv/MFX1iMa1FaKvOc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41095: drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_ld_modes Date: Mon, 29 Jul 2024 17:48:57 +0200 Message-ID: <2024072954-CVE-2024-41095-7b63@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=2500; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c0ZMrW2u5V3MS3Pvs/yPyswFZ5HldT7ntZCAqogB2Ac=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLdz67xPYr6KDTIute763VxdXX5ffkB1b9mOtoeDluy gNFscbzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRx9sZFszcHcG7sS52b23V XzlO1i9bvi97KcYwPy5uWrjtw1kbwmy45rHabevV+B/0CQA= 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_ld_modes In nv17_tv_get_ld_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-41095 to this issue. Affected and fixed versions =========================== Fixed in 4.19.317 with commit 9289cd3450d1 Fixed in 5.4.279 with commit dbd75f322525 Fixed in 5.10.221 with commit 259549b2ccf7 Fixed in 5.15.162 with commit 0d17604f2e44 Fixed in 6.1.97 with commit f95ed0f54b3d Fixed in 6.6.37 with commit cb751e48bbcf Fixed in 6.9.8 with commit bdda5072494f Fixed in 6.10 with commit 66edf3fb331b 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-41095 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/9289cd3450d1da3e271ef4b054d4d2932c41243e https://git.kernel.org/stable/c/dbd75f32252508ed6c46c3288a282c301a57ceeb https://git.kernel.org/stable/c/259549b2ccf795b7f91f7b5aba47286addcfa389 https://git.kernel.org/stable/c/0d17604f2e44b3df21e218fe8fb3b836d41bac49 https://git.kernel.org/stable/c/f95ed0f54b3d3faecae1140ddab854f904a6e7c8 https://git.kernel.org/stable/c/cb751e48bbcffd292090f7882b23b215111b3d72 https://git.kernel.org/stable/c/bdda5072494f2a7215d94fc4124ad1949a218714 https://git.kernel.org/stable/c/66edf3fb331b6c55439b10f9862987b0916b3726