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 28CF44437F for ; Wed, 1 May 2024 05:22:35 +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=1714540955; cv=none; b=T9dNidJ3zSnZpsP3U4CIp5WxieGsgTZOHYZFRiborwcJLFBvZJvHipDmC5SPTylcIYPd6PLPkJ3gOffcyfDurUy9xOQG2pD+Os8bWUTt1IF3naT2jB7eqNtZiVaDQmbjTWXJiZSKLbwr8FEcmRAHfHhAxCWkmBdFdqwj/UtTSt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540955; c=relaxed/simple; bh=gLN9ZwgNu9binN6c6uxrE4agJmmmaNgD23br+imOgMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EVqZi9nuXk36If/uqPBEFzwUIzqYCpElieqLifNqZS9VbGWSXhNQcCj31kuQyvRhv5yavE59hnBUrYLbYh7CRqQfPIeMfKDonCurq9h0nQ7/Vjncqlx3zu3lS9UKZULM4DywFE4aFRJW+p25LBL/nyclXlt8kc0jhS9cikR1DNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=apEFEtTm; 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="apEFEtTm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5E6BC113CC; Wed, 1 May 2024 05:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540955; bh=gLN9ZwgNu9binN6c6uxrE4agJmmmaNgD23br+imOgMs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=apEFEtTmK6x3bKIbImQ0OaFoBTuJKtTIYO09d98tPhp7x8FkHlpbBAYUuwioHlTJa bTjHU3gX8a2sKWwSmVzQbP05JFQMSQZU3RZDSz9OFHzlgQVBuENlPGQdElL6BnLQif M0vWTgon60J2DAgh1hbdVtjUm98Z5XLtQiNO0H6c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26949: drm/amdgpu/pm: Fix NULL pointer dereference when get power limit Date: Wed, 1 May 2024 07:21:39 +0200 Message-ID: <2024050127-CVE-2024-26949-cf74@gregkh> X-Mailer: git-send-email 2.44.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=2223; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gLN9ZwgNu9binN6c6uxrE4agJmmmaNgD23br+imOgMs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF8M5rtrpvnz5weT0qvX5ks+fVokeePfRP9DLe0fCF o7czx22HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARh8sM89TfPc0QLC8/E/4/ 5i3v5aB+HnuzeIb5Gf4Z6VlRzqVSu+RvxVx7zDRt5y5JAA== 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/pm: Fix NULL pointer dereference when get power limit Because powerplay_table initialization is skipped under sriov case, We check and set default lower and upper OD value if powerplay_table is NULL. The Linux kernel CVE team has assigned CVE-2024-26949 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7.9 with commit c83d9cce713f and fixed in 6.7.12 with commit 99c2f1563b14 Issue introduced in 6.8 with commit 7968e9748fbb and fixed in 6.8.3 with commit b8eaa8ef1f11 Issue introduced in 6.8 with commit 7968e9748fbb and fixed in 6.9-rc1 with commit 08ae9ef829b8 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-2024-26949 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/smu11/arcturus_ppt.c drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.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/99c2f1563b1400cc8331fc79d19ada1bb95bb388 https://git.kernel.org/stable/c/b8eaa8ef1f1157a9f330e36e66bdd7a693309948 https://git.kernel.org/stable/c/08ae9ef829b8055c2fdc8cfee37510c1f4721a07