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 A52E94C97 for ; Sat, 17 Aug 2024 09:12:40 +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=1723885960; cv=none; b=Kpf1DRQqlvREm3p54qlU2Givxl46r8AYkz3ENNDEH/IJUlGnyAM0DxNpdsXK0Xc1oM2FszxeqqRnLSVGl00IyRyE1Y2HtO18gKdY4GIgkh+7j+O8R5+YcdZlVNYbyy2Ed8Klhx45Fov6v+C/oHe3VtNmKe+h5z3KHIrTxQYFx9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885960; c=relaxed/simple; bh=WszBHWDtHEXmYJrU23yhgjnmnW2voeA6jrX+DgRPvbY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oFIAYbeyh0i892KrDfy/W7c5jz1+IylIQmMmAK9JVZNCYnf1N3Z0h5brkjry4CDD7IBB3v2MZhO+Y4bYcSS+u0gnm5Pz2gDbpee+BHsQaJVC0tpqKXJy3b6UibtMAM/CD1eD8dDTH7/P1DEycFrnYXd1N7ddyx1v2PaWZ+Jv6cY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O6Dot43O; 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="O6Dot43O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E6E9C116B1; Sat, 17 Aug 2024 09:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885960; bh=WszBHWDtHEXmYJrU23yhgjnmnW2voeA6jrX+DgRPvbY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O6Dot43O/JWOdIa93uj3yObbBp0wCS7kXrbwL6qCtRl/AwV/qoKPaU5wK58smHqnB n4k/i27a+H5fM7i6reA8qsdgV+nK9pht+NeIA6WE+aFIdRr1AkncTqi7dSjJP5H6oW FkmeiON4aiyrU6PzrwyuoPMjdmwQxj+FAsMd6Elc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42310: drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes Date: Sat, 17 Aug 2024 11:10:15 +0200 Message-ID: <2024081751-CVE-2024-42310-58b0@gregkh> X-Mailer: git-send-email 2.46.0 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=2226; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WszBHWDtHEXmYJrU23yhgjnmnW2voeA6jrX+DgRPvbY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMu6XPr5ZxGcVG7atKTn+ZLNZus7GjBNN96VKUs7dX m7Q3La9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS18Qw371aeK2K9srXuqsT jmez3SuTOPKMh2F+2JtApsRFvy/yzsi33yxUw/+gTFofAA== 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/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes In cdv_intel_lvds_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The Linux kernel CVE team has assigned CVE-2024-42310 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit 6a227d5fd6c4 and fixed in 6.1.103 with commit e74eb5e80894 Issue introduced in 3.3 with commit 6a227d5fd6c4 and fixed in 6.6.44 with commit 2d209b2f862f Issue introduced in 3.3 with commit 6a227d5fd6c4 and fixed in 6.10.3 with commit 977ee4fe895e Issue introduced in 3.3 with commit 6a227d5fd6c4 and fixed in 6.11-rc1 with commit cb520c3f366c 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-42310 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/gma500/cdv_intel_lvds.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/e74eb5e8089427c8c49e0dd5067e5f39ce3a4d56 https://git.kernel.org/stable/c/2d209b2f862f6b8bff549ede541590a8d119da23 https://git.kernel.org/stable/c/977ee4fe895e1729cd36cc26916bbb10084713d6 https://git.kernel.org/stable/c/cb520c3f366c77e8d69e4e2e2781a8ce48d98e79