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 6E2C91B4155 for ; Thu, 27 Feb 2025 02:19:11 +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=1740622751; cv=none; b=nc26SwyVAAVm2FcliOWfxyobpcQqWpQzzrhXWtB9HSE2gejXpa8Jt1KmpQ4yoYoC5b1+RUPmwc7aYy/NXatSecTbXXlARhDiGTsIBvKNr1bcv428nX2+apKZ47NmZ7qom8U16kNvuhgAWqUcfZugf5oAVzRs84bj+VziWTv3qvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622751; c=relaxed/simple; bh=Co1Kz/evsCbXdRi0RgbKRzsCgKTqwG2DMbRkFZrhCbo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gqVcuWSXUv4KZZx7KLjHMIXEh43QcTpR+O6Y2ZYta9oyXjYvKmKwXdRkNu14syu0/J7zDf5t8unaWjZhuDnhYK9CB8hP3k17qbksJUcvuTU7PcuBkZK9LQ4OjPzvFY3LwYjKqVy/dHItSUxMCJss4d+Ya9YjjtkK3cXQHmtkZSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gyW2OmMn; 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="gyW2OmMn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40CC2C4CEEA; Thu, 27 Feb 2025 02:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622751; bh=Co1Kz/evsCbXdRi0RgbKRzsCgKTqwG2DMbRkFZrhCbo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gyW2OmMnWTqmYYfkQE/QtCAvMa4IaEbgbWrkurK8XiabNwqd9fcwFfJ300wvVIPpA 2yL/sbLIlBtQVpjasIyul44EyXdZo2VduvK5eHrRtMqVFyGd6YUyENBqwnQGX35xFZ suQXgDYh9Njsn/W+lkw2DpEKoXaoFJl52E1O/LUw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21780: drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table() Date: Wed, 26 Feb 2025 18:17:36 -0800 Message-ID: <2025022607-CVE-2025-21780-8283@gregkh> X-Mailer: git-send-email 2.48.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=2228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Co1Kz/evsCbXdRi0RgbKRzsCgKTqwG2DMbRkFZrhCbo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7TyvnX9TgN/h9LPvDyebwSz6vBQL+uml4L7XMN39bK bT1bY9IRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEM4NhwRqBBUuqWJVsemUf e5yNNGr7FdN3mWHBgpDqrTdV891WTNu3yDpt3qe+BXGpAA== 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/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table() It malicious user provides a small pptable through sysfs and then a bigger pptable, it may cause buffer overflow attack in function smu_sys_set_pp_table(). The Linux kernel CVE team has assigned CVE-2025-21780 to this issue. Affected and fixed versions =========================== Fixed in 6.1.129 with commit 3484ea33157bc7334f57e64826ec5a4bf992151a Fixed in 6.6.79 with commit e43a8b9c4d700ffec819c5043a48769b3e7d9cab Fixed in 6.12.16 with commit 2498d2db1d35e88a2060ea191ae75dce853dd084 Fixed in 6.13.4 with commit 231075c5a8ea54f34b7c4794687baa980814e6de Fixed in 6.14-rc3 with commit 1abb2648698bf10783d2236a6b4a7ca5e8021699 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-21780 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/pm/swsmu/amdgpu_smu.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/3484ea33157bc7334f57e64826ec5a4bf992151a https://git.kernel.org/stable/c/e43a8b9c4d700ffec819c5043a48769b3e7d9cab https://git.kernel.org/stable/c/2498d2db1d35e88a2060ea191ae75dce853dd084 https://git.kernel.org/stable/c/231075c5a8ea54f34b7c4794687baa980814e6de https://git.kernel.org/stable/c/1abb2648698bf10783d2236a6b4a7ca5e8021699