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 793B620C47B for ; Tue, 1 Apr 2025 15:48:18 +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=1743522498; cv=none; b=VFyyVEMoFLopuDbM1YbVMROd4sNKSCb03EsRkCMz47Zg2CMtbzSC6VW7jBlWCY13VECZFVHjgZ0zB6+s8F/N3FYV+E0kAUl71QUSLKFJhMk/1dvPte6+Oug0UpqrYF7K2oQKWuRZ5fEV2gSjcCTqfiIycaEl8ml43Ei+vNJaM6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522498; c=relaxed/simple; bh=qPVgR1FP9ZYQn2gjPt91T+z8G7Q4dOVFZPcvnX7xNYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n1ZPhkLltA0r5zeXBLwjS4oFeej6N09XWmGZyUAihvXdgp+v/VFDmVIh381dH4qc6r+egxrXRfvW+E7b2nr91wWOZG8dyVJf/bvsN3H3aI/RDLB/IWnn2GkRDCVQvay5bVd1xuNDWxDSzbZND8Ozn5q+EgvkTvEJH432whrbvaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bg5mrfvp; 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="Bg5mrfvp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11171C4CEE4; Tue, 1 Apr 2025 15:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522498; bh=qPVgR1FP9ZYQn2gjPt91T+z8G7Q4dOVFZPcvnX7xNYU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Bg5mrfvprMGxAyV13rH0mYCT9BzqhoSrHRExfXAC+o9OE6mn7NAHsRaM155NpWtk9 XLd4YRRDZXEf2eyXa1NVZGJYL3HeVTKWEcV1FDbHlQ/3bhJRMBH7ZxFIiFbGo53qqt Dqd4+tw+vhXF0CdC/AAtep8etVSy8i6txpi5j6bw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21985: drm/amd/display: Fix out-of-bound accesses Date: Tue, 1 Apr 2025 16:46:10 +0100 Message-ID: <2025040149-CVE-2025-21985-435c@gregkh> X-Mailer: git-send-email 2.49.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=2189; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qPVgR1FP9ZYQn2gjPt91T+z8G7Q4dOVFZPcvnX7xNYU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuHQbiuwVe/bw3DxxRjhy63vp0L8FxavVGZOePt2Tl PumzmZyRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE+C7DfK8J74zW8T++rnF2 9k2fsv2HpStvnmeYK5W+ceaaTSe2R6fNXv1y8/mKNcKu7gA= 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/amd/display: Fix out-of-bound accesses [WHAT & HOW] hpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4), but location can have size up to 6. As a result, it is necessary to check location against MAX_HPO_DP2_ENCODERS. Similiarly, disp_cfg_stream_location can be used as an array index which should be 0..5, so the ASSERT's conditions should be less without equal. The Linux kernel CVE team has assigned CVE-2025-21985 to this issue. Affected and fixed versions =========================== Fixed in 6.12.20 with commit 36793d90d76f667d26c6dd025571481ee0c96abc Fixed in 6.13.8 with commit 9aedc776b11038f04f4641241bb7e877781e4aa4 Fixed in 6.14 with commit 8adbb2a98b00926315fd513b5fe2596b5716b82d 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-2025-21985 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/amd/display/dc/dml2/dml21/dml21_translation_helper.c drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.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/36793d90d76f667d26c6dd025571481ee0c96abc https://git.kernel.org/stable/c/9aedc776b11038f04f4641241bb7e877781e4aa4 https://git.kernel.org/stable/c/8adbb2a98b00926315fd513b5fe2596b5716b82d