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 2D78E393DFD for ; Tue, 16 Dec 2025 13:31:16 +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=1765891877; cv=none; b=Q5RFCg7fuItQs7i6UhbyTbBsP6sld6sxpfL8qu0B0XmYVb1LKB5PA8djKpOhaKWWzadTs1UBXF5IcSQVTdaDot3PndaAFLJawlp2GH3UnMoBNjgZBP8hG2cyJtAi56qxys34rGznBhQ++6yCIvZMXdchwnAgJH2qSfl4ENskGaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765891877; c=relaxed/simple; bh=UDPxVE+sYK+poo52bDYgsGErAjVwgGekoGcVXib7pF0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o+yzSqLazejq538f40dwQOAREWD6enoIcDZ+GtVKLXaZjbGD/PbNqX7/wfr3hw+FIq0KZ1m9y5fe9BVGlb/weQVImegdx6J72Iz2mXEOT6j+9z2q33taZ6hZAdmp99XEHrZfg/EjagwqZSVfxcqFe6115cQCnZqwrXOkPdEbAIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rLSRUh2D; 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="rLSRUh2D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48C3BC16AAE; Tue, 16 Dec 2025 13:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765891876; bh=UDPxVE+sYK+poo52bDYgsGErAjVwgGekoGcVXib7pF0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rLSRUh2Dhmjgea7wOgjFiJY5d/hJaKdsU3Ab/cwRvrqfOkPPOX172zFSCKQ5558Pc 2WqI3mQHI9dRlFQL6/558m5yjqVEcIjVZFenF9c9BVhA01Fm+SP9+7hzXXYLec2eIc PzXqg0ylqU4weR08w+vUTptHrybKNnLxihRNeuio= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40354: drm/amd/display: increase max link count and fix link->enc NULL pointer access Date: Tue, 16 Dec 2025 14:30:41 +0100 Message-ID: <2025121637-CVE-2025-40354-b9bd@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2137; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G8b2U9NPbQrLyRtQHauis8BibeNzhRik1SZbkszth88=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOcX9tb1x/+KR36rIgkZnZcTJXFc6d/fJns49dbUnE3 dnLHON4O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAib5czzFOZtkCfSzf9t3hC dsfzu/aLAv2/OjPMT7+ef3HHkZ15ZYEtxbIfAteuqJDSAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: increase max link count and fix link->enc NULL pointer access [why] 1.) dc->links[MAX_LINKS] array size smaller than actual requested. max_connector + max_dpia + 4 virtual = 14. increase from 12 to 14. 2.) hw_init() access null LINK_ENC for dpia non display_endpoint. (cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45) The Linux kernel CVE team has assigned CVE-2025-40354 to this issue. Affected and fixed versions =========================== Fixed in 6.12.56 with commit f28092be4e12b7df9e4f415d25bf0d767bc2d9ed Fixed in 6.17.6 with commit a3fc0d36cfb927f8986b83bf5fba47dbedad3c63 Fixed in 6.18 with commit bec947cbe9a65783adb475a5fb47980d7b4f4796 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-40354 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/hwss/dcn401/dcn401_hwseq.c drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h 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/f28092be4e12b7df9e4f415d25bf0d767bc2d9ed https://git.kernel.org/stable/c/a3fc0d36cfb927f8986b83bf5fba47dbedad3c63 https://git.kernel.org/stable/c/bec947cbe9a65783adb475a5fb47980d7b4f4796