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 597AA1957FC for ; Wed, 8 Jan 2025 17:49: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=1736358580; cv=none; b=jOA8rarVpQWHaxV0bx2l7fZr2a/q5fjyIqnotucG2Bsx8WvA9WLMsGW81dPCaMkbDHkhAlo0m8j2URhHZsQA390hW3H9AhyNr1sWp862r+PrBysJELDfPRwUA60KZ36TO7PMXX3D4gP0u+6OVcwRlyk/frUZp8G2QCE8TU96P08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736358580; c=relaxed/simple; bh=30XRD9bjEYf8omR7J2Jp24Xqq+L8u86Mcf4UUVsICVo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gokXDxCmLHY6BT8/YNZLQIpqa9R5E2qqbW6tE/eA9oSnCA30ux4KvxJIVplTC2I0twnmpJqMhS0BYz5sm+vId0A77eytTNWP3Hh3L0+ZCRBUlDJmrNLvy1+bZF9NJ27Zd7ap06R9J2huyDuBcYPxj2rlp4xJtZhIZoDUPdxLU2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KWx6TsiF; 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="KWx6TsiF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76266C4CED3; Wed, 8 Jan 2025 17:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736358580; bh=30XRD9bjEYf8omR7J2Jp24Xqq+L8u86Mcf4UUVsICVo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KWx6TsiFNVey/qhuR2HxtlW1UPeW9GOa4jgi7RHMDRl0C236v6dvwtUEAaxBR34ey LyTrUx8n8kGwVMOFWew4vZUfC9KPL4rqvytTzGWukw88Fc1h7T9gHtwBbkgLP8tlv0 JxGYQZfPOqCCowAF4UAooPY8UJOkmolXR5voFUnM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56777: drm/sti: avoid potential dereference of error pointers in sti_gdp_atomic_check Date: Wed, 8 Jan 2025 18:49:15 +0100 Message-ID: <2025010812-CVE-2024-56777-a145@gregkh> X-Mailer: git-send-email 2.47.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=2614; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=30XRD9bjEYf8omR7J2Jp24Xqq+L8u86Mcf4UUVsICVo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl1u2aYtu+zsC9PrzgqMu+Vv2H7uXnfZ36LvdPV4W/gF 8JquIy7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaylY9hvn9npaxtQMIi+5ly M/csYnfNjhPQZ1gw49ze6wbcDLfMQq1ifqQyfJXO+n4aAA== 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/sti: avoid potential dereference of error pointers in sti_gdp_atomic_check The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. The Linux kernel CVE team has assigned CVE-2024-56777 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 5.15.174 with commit f5804567cf9605d6e5ec46c0bb786f7d50f18c13 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.1.120 with commit b79612ed6bc1a184c45427105c851b5b2d4342ca Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.6.64 with commit 997b64c3f4c1827c5cfda8ae7f5d13f78d28b541 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.12.4 with commit 3cf2e7c448e246f7e700c7aa47450d1e27579559 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.13-rc1 with commit e965e771b069421c233d674c3c8cd8c7f7245f42 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-56777 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/sti/sti_gdp.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/f5804567cf9605d6e5ec46c0bb786f7d50f18c13 https://git.kernel.org/stable/c/b79612ed6bc1a184c45427105c851b5b2d4342ca https://git.kernel.org/stable/c/997b64c3f4c1827c5cfda8ae7f5d13f78d28b541 https://git.kernel.org/stable/c/3cf2e7c448e246f7e700c7aa47450d1e27579559 https://git.kernel.org/stable/c/e965e771b069421c233d674c3c8cd8c7f7245f42