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 F0C5D14A8E for ; Tue, 21 May 2024 15:04:34 +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=1716303875; cv=none; b=T5kcA4y2DnlsFAPhK3OZkYeFOvYUZwkgOKcc9xcqawHduWDnt6c2/LQYHCpyiNzLrLCp0ALCvFDjMh+nXia8jLjhSBwXQ1Oj5sqggeiA0zUWh1V3QGaEOyJlgVBIZIOAPP0vHRhlIhgnYAJ0AgNHXiSq85MkYb/Z7zaIr4FOCdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303875; c=relaxed/simple; bh=7UPRyldDhZypaJxUt7uY26TLzXJ5LuvGAwOTvy3aw5U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qNEC/IHEI8bVo7VKd30Y2+hiyxheiXhs2cw8DHgUmnET3L0PT++etWN+/iPpn/nI1WvjRQQsPrHwnnCkXZnj8rwjoRC3NqFpQToXwrpAPraOip1cGTDO/2I24sX5JrS+LRf0IrYtLUAcrGx/CGS1g/tMfva4YAPYGyJ8cIbt/cU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CqbXjKem; 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="CqbXjKem" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11B25C2BD11; Tue, 21 May 2024 15:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303874; bh=7UPRyldDhZypaJxUt7uY26TLzXJ5LuvGAwOTvy3aw5U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CqbXjKemnRJJD79TYPNq6AvlTAJeIiqM0MJNoAXuDROq6MjJTIJXgA1jcT0cdmnZg 5oz443ZVZRHZpdzK+QcORqFCAEKN7bQtY3TrINAw7BM3VMVnWv3WQAHBKLQEWblrkn CEu5LqHwTGCULDCKNGrxynzm1voinFM1QrzoCtbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47362: drm/amd/pm: Update intermediate power state for SI Date: Tue, 21 May 2024 17:03:39 +0200 Message-ID: <2024052137-CVE-2021-47362-ce0d@gregkh> X-Mailer: git-send-email 2.45.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=2470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7UPRyldDhZypaJxUt7uY26TLzXJ5LuvGAwOTvy3aw5U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+209+a7vN2zLB5fKzePbPju+Pls283HMsUu69ETtH+ 11vU+v9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqUcY5imnKbLdiri2bXUT y2yTOVPV5/ZGSTPM9/l5OSf9hkFaCUtk1I7nxmt3Br1YBQA= 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/pm: Update intermediate power state for SI Update the current state as boot state during dpm initialization. During the subsequent initialization, set_power_state gets called to transition to the final power state. set_power_state refers to values from the current state and without current state populated, it could result in NULL pointer dereference. For ex: on platforms where PCI speed change is supported through ACPI ATCS method, the link speed of current state needs to be queried before deciding on changing to final power state's link speed. The logic to query ATCS-support was broken on certain platforms. The issue became visible when broken ATCS-support logic got fixed with commit f9b7f3703ff9 ("drm/amdgpu/acpi: make ATPX/ATCS structures global (v2)"). Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1698 The Linux kernel CVE team has assigned CVE-2021-47362 to this issue. Affected and fixed versions =========================== Fixed in 5.10.70 with commit 68d4fbe6220c Fixed in 5.14.9 with commit 06a18e64256f Fixed in 5.15 with commit ab39d3cef526 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-2021-47362 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/powerplay/si_dpm.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/68d4fbe6220cd1f3d07cab0a4901e62f8c12cc68 https://git.kernel.org/stable/c/06a18e64256f7aecb5a27df02faa3568fcd3c105 https://git.kernel.org/stable/c/ab39d3cef526ba09c4c6923b4cd7e6ec1c5d4faa