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 082BC1957FC for ; Wed, 8 Jan 2025 17:49:43 +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=1736358585; cv=none; b=rGS4ihihgjI/EpcDNEJg9e/SaLdtLYhKvRXfPzVotpjitzWz10l1Luo7H+85ck+MM93MAzbmBAD2lRKuyf75su4NJdjBfurN5cjEtVERG7kHZtmVhIOeT9HbDGAFSIyF0O+0gK2j/2JXgTEFXc82J/BzXm4OV/KWREZ4gc59YU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736358585; c=relaxed/simple; bh=wgw34kzruCSr6+9nLmT3qZYCwRvZDMjAz345UXg0o7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iYcGfnOUhSX1p6IxAEbMVBz7JcNJqdDBmEsZ+D0uwiTptVV2X2tUJl3qn67CR9bbGO7EASeK9Y4MzR0dQZ5i7Z4FxDQZgA6sVXByCWK43mTnSKq9NYXcEMUe48cmrqUY7n3M2ChG+/mh5JfRZm7KJ0Gw2ycu6WRvBb3JVzuUzec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RlYRtFmH; 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="RlYRtFmH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12BCFC4CED3; Wed, 8 Jan 2025 17:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736358583; bh=wgw34kzruCSr6+9nLmT3qZYCwRvZDMjAz345UXg0o7w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RlYRtFmH8lOGfarnnBvEJGKhjQseXzJKi9HtexWmNCUxHQ9o9gCdrk5agIHpaZi/b fAa3VnOMXwBDhAVvPFYGSfMm+dcnrBrM89Dj+bQ1gemkoTfnD+1wnPM+YnFRm+0NTp ZI1CWHwo8+3HUzEYHlYqtsENaNveQiTCleaVEsTs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56778: drm/sti: avoid potential dereference of error pointers in sti_hqvdp_atomic_check Date: Wed, 8 Jan 2025 18:49:16 +0100 Message-ID: <2025010812-CVE-2024-56778-45a9@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=2618; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wgw34kzruCSr6+9nLmT3qZYCwRvZDMjAz345UXg0o7w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl1u2bw/LWKCHh47YmGrmrw1eKe741Vi4KSP0TJuRilN 0fKzbboiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk41jDMs36r9POEzqZJ/47O jan27UvfUs1rwTA/8M4Bi+yY6H33Q9znPVguPc3xJEcoAA== 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_hqvdp_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-56778 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 5.15.174 with commit 31c857e7496d34e5a32a6f75bc024d0b06fd646a Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.1.120 with commit 6b0d0d6e9d3c26697230bf7dc9e6b52bdb24086f Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.6.64 with commit 82a5312f874fb18f045d9658e9bd290e3b0621c0 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.12.4 with commit 837eb99ad3340c7a9febf454f41c8e3edb68ac1e Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.13-rc1 with commit c1ab40a1fdfee732c7e6ff2fb8253760293e47e8 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-56778 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_hqvdp.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/31c857e7496d34e5a32a6f75bc024d0b06fd646a https://git.kernel.org/stable/c/6b0d0d6e9d3c26697230bf7dc9e6b52bdb24086f https://git.kernel.org/stable/c/82a5312f874fb18f045d9658e9bd290e3b0621c0 https://git.kernel.org/stable/c/837eb99ad3340c7a9febf454f41c8e3edb68ac1e https://git.kernel.org/stable/c/c1ab40a1fdfee732c7e6ff2fb8253760293e47e8