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 B09172820C5 for ; Wed, 18 Jun 2025 09:36:20 +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=1750239380; cv=none; b=jemDLmIVkrMeRaoLki5edXlXu/qmz479YsujsHqHEMKqjhx0c5KuDxOP04rRTrxKn9sbEpwFOkD86RHqebIq1Aw+jUTMcg9JvasEq1bS65IuHuWFwHpCFAfd/yKQNtemY7EC+BekMTl/xtJ0Bs6kr23lWOdwPDcq3MinDYe0dNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239380; c=relaxed/simple; bh=Fbix98j0SqK1IkeuU4lBfz0Lgvu/Mk68x4b38VoZjNU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GRVk7ulHKuIN83Et6cFwAr2DiQ9jbSu50qmOuB3JVjngZ9OXOInbwpvEYeLjQbJDVgE+ayA8FOKeOdtYy6pOweDM8WPtLVB+RMEndS+Wfipdr87VDSAzAjfMv155tVlb9Zzptlj5RdFyeOT3xjldg0t8iamFZHswyDm2/KeLX1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tlqIJ0Vu; 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="tlqIJ0Vu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3583C4CEE7; Wed, 18 Jun 2025 09:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239380; bh=Fbix98j0SqK1IkeuU4lBfz0Lgvu/Mk68x4b38VoZjNU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tlqIJ0VukN6KR4SP4ml00BarvUxcN7yQvm+8DSjluB/u2qXcwBCLwI2dXXndF6pPj gKmCFshz7aPvx9huCpBZV8eLfBBj+OEN4mzjNn8g0b6xk4E76x3qwNJ7sKcDBL/jID HjR0BMcdYqw7MhYFT0y4Y3bdDSNHLlUPMq/0xHz8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38080: drm/amd/display: Increase block_sequence array size Date: Wed, 18 Jun 2025 11:34:15 +0200 Message-ID: <2025061842-CVE-2025-38080-849c@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=2388; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xiHwmmFwTnxm3Bpy8CEC6yYseoXXWX8RJhn4yxXk5M4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7d82JL+RO/zp/I26wuVn9yzVubfGyribs0msp5bhk eLFJexBHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRlTwM87QVLD5PlTkhpzPf 2q18987jkxSb8xkW7Ge5xnL947aXE3neWEV/T+3+P09hCgA= 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 block_sequence array size [Why] It's possible to generate more than 50 steps in hwss_build_fast_sequence, for example with a 6-pipe asic where all pipes are in one MPC chain. This overflows the block_sequence buffer and corrupts block_sequence_steps, causing a crash. [How] Expand block_sequence to 100 items. A naive upper bound on the possible number of steps for a 6-pipe asic, ignoring the potential for steps to be mutually exclusive, is 91 with current code, therefore 100 is sufficient. The Linux kernel CVE team has assigned CVE-2025-38080 to this issue. Affected and fixed versions =========================== Fixed in 6.6.93 with commit de67e80ab48f1f23663831007a2fa3c1471a7757 Fixed in 6.12.31 with commit e55c5704b12eeea27e212bfab8f7e51ad3e8ac1f Fixed in 6.14.9 with commit bf1666072e7482317cf2302621766482a21a62c7 Fixed in 6.15 with commit 3a7810c212bcf2f722671dadf4b23ff70a7d23ee 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-38080 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/inc/core_types.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/de67e80ab48f1f23663831007a2fa3c1471a7757 https://git.kernel.org/stable/c/e55c5704b12eeea27e212bfab8f7e51ad3e8ac1f https://git.kernel.org/stable/c/bf1666072e7482317cf2302621766482a21a62c7 https://git.kernel.org/stable/c/3a7810c212bcf2f722671dadf4b23ff70a7d23ee