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 CAF7A1F80AC for ; Mon, 21 Oct 2024 18:04:03 +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=1729533843; cv=none; b=Mzn6/LvgmNcfE03WIzjJlXVDjs423wxNOF291B2kkirQlzX6MI3F2MLl2AWc3iAPVa8HvVWHByqdxQE9U6z+4UFje2XVC/UjlBcRGq0ykraNZ7fDhEQORcHO/wTvyoZajpxQ6uHMlXNf7/R5cpzeM50O4MAbI3F8u+gpkHxjab4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533843; c=relaxed/simple; bh=xkLkeJztHWOTjZf5Og+t9yUxkk9wMNjv1OUcJCcVD0A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rkt/ukkWolgQt1dPblr8iqEUEMEAaZmYyECyi67d+UhfxFo8YZx7gUMvE1zut9/TVrm3MeyhSnbHUGMvWtYUvR+neXMlCRsl2tXF7XGTz/QzKfiU4F+H6LE2EXgYwJ0MYD90UkrTlY4XJvYCMsnI/tJBaSa8Ed7AmSNJccCNz6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DFbFDJTK; 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="DFbFDJTK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A092C4CEE5; Mon, 21 Oct 2024 18:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533843; bh=xkLkeJztHWOTjZf5Og+t9yUxkk9wMNjv1OUcJCcVD0A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DFbFDJTKYD+XFqQQXgMmd1ujEQhuQ42o2e3HeOqNgH6mDqdlj9I48JJYDCifmLIt7 JFg8wSSPdVuIG+3RB6hmXoFLrngIH4z1F6fa4VGRVMPa2ZNBqFv4zJRHTlsbMNBMbD 1M3rLb2UrWJX05ybd1sdnOOL6toaNgA52UIdWkgs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49907: drm/amd/display: Check null pointers before using dc->clk_mgr Date: Mon, 21 Oct 2024 20:01:55 +0200 Message-ID: <2024102121-CVE-2024-49907-d177@gregkh> X-Mailer: git-send-email 2.47.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=2503; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xkLkeJztHWOTjZf5Og+t9yUxkk9wMNjv1OUcJCcVD0A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0z6+tF/Rrfvq2pY7rgUCN7+eOjVfW0LILub9Xq8+m ZPNOmINHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR9zwMCxZ9ucWU9t1Y56yJ qUPF5h36F6dsrmNYsFYvIix5YUHvtuY85mXXuH7MdLxeCAA= 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/display: Check null pointers before using dc->clk_mgr [WHY & HOW] dc->clk_mgr is null checked previously in the same function, indicating it might be null. Passing "dc" to "dc->hwss.apply_idle_power_optimizations", which dereferences null "dc->clk_mgr". (The function pointer resolves to "dcn35_apply_idle_power_optimizations".) This fixes 1 FORWARD_NULL issue reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-49907 to this issue. Affected and fixed versions =========================== Fixed in 5.10.227 with commit 8d54001f8dcc Fixed in 5.15.168 with commit a545a9403e04 Fixed in 6.1.113 with commit a2773e0a4b79 Fixed in 6.6.55 with commit 9641bc4adf84 Fixed in 6.10.14 with commit 3f7e533c10db Fixed in 6.11.3 with commit 5ba3fbf75b24 Fixed in 6.12-rc1 with commit 95d9e0803e51 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-49907 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/core/dc.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/8d54001f8dccd56146973f23f3ab2ba037a21251 https://git.kernel.org/stable/c/a545a9403e04c6e17fdc04a26a61d9feebbba106 https://git.kernel.org/stable/c/a2773e0a4b79e7a6463abdffaf8cc4f24428ba18 https://git.kernel.org/stable/c/9641bc4adf8446034e490ed543ae7e9833cfbdf5 https://git.kernel.org/stable/c/3f7e533c10db3d0158709a99e2129ff63add6bcd https://git.kernel.org/stable/c/5ba3fbf75b243b2863a8be9e7c393e003d3b88f3 https://git.kernel.org/stable/c/95d9e0803e51d5a24276b7643b244c7477daf463