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 9CC821957FC for ; Wed, 8 Jan 2025 17:49:36 +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=1736358576; cv=none; b=BVYFElNBWXQCeCRWFN8daCzZfOaf97BPfExIb4GFh6HQFEqXY+Zk93kIM85v2itX262KV+nwP7nYldHQPVSVLHn7dpxqtTK11ZZ2FG+fbDdVJ1rToG0Xt3oH1c7sqj+kJVfpZ9W+kN5vyJu2fRAmf34ZmrNjPLZofoAHVolrg5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736358576; c=relaxed/simple; bh=ygv81UMm0SjwXjbFeLE3yYyNU0sNzhWLCIjUtMPHEH4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r+Q9QoLz2ipcJLEQggqeMcaOqRKca1TZjCL71aipFvNxSlEIkDa9p9aDWV+ZnmLiYp/OlrHi3kcQ9zT8FlT1XZQvAzxShxHpMU8Un8AGc8HDgXwJPWHXm/S1wVzeDvbGMcwWMZ8VBxpU5aheN6yLAt4kScBqbIf28JP71cu01mw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mlFQjqea; 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="mlFQjqea" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9499C4CED3; Wed, 8 Jan 2025 17:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736358576; bh=ygv81UMm0SjwXjbFeLE3yYyNU0sNzhWLCIjUtMPHEH4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mlFQjqea793QOl27CiOqt6ktxEEeQAj3kmS1O14pt9y/yU6/aHeR0dmx1e+bqLFhg F1IRkk+JFlJb/ol90Y01CwDOzWi8tQZ2jNwuoPL3VP4y89jHi3KM9pnO7S+hGPwuVV RYg9+HqImowN9+ofXTHs8PGtb7V4++HnS10aJppY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56776: drm/sti: avoid potential dereference of error pointers Date: Wed, 8 Jan 2025 18:49:14 +0100 Message-ID: <2025010811-CVE-2024-56776-040d@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=2593; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ygv81UMm0SjwXjbFeLE3yYyNU0sNzhWLCIjUtMPHEH4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl1u2Z8tTtz9X7LTg+n27Z/ts0QkcjLUmiLn7+kSIaT9 VqV5pLFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRx1sYFpwzbF4v+sQ+cdJW xhVF7+x/6Jp8usEw3//557CV85lTLOOUHly9HCd7c9bRjwA= 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 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-56776 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 5.15.174 with commit e98ff67f5a68114804607de549c2350d27628fc7 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.1.120 with commit 40725c5fabee804fecce41d4d5c5bae80c45e1c4 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.6.64 with commit 8ab73ac97c0fa528f66eeccd9bb53eb6eb7d20dc Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.12.4 with commit f67786293193cf01ebcc6fdbcbd1587b24f52679 Issue introduced in 4.6 with commit dd86dc2f9ae1102f46115be1f1422265c15540f1 and fixed in 6.13-rc1 with commit 831214f77037de02afc287eae93ce97f218d8c04 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-56776 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_cursor.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/e98ff67f5a68114804607de549c2350d27628fc7 https://git.kernel.org/stable/c/40725c5fabee804fecce41d4d5c5bae80c45e1c4 https://git.kernel.org/stable/c/8ab73ac97c0fa528f66eeccd9bb53eb6eb7d20dc https://git.kernel.org/stable/c/f67786293193cf01ebcc6fdbcbd1587b24f52679 https://git.kernel.org/stable/c/831214f77037de02afc287eae93ce97f218d8c04