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 61A331CBEB6 for ; Mon, 21 Oct 2024 18:06:51 +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=1729534011; cv=none; b=mgbsoEpta6O28z/8SLRWN06O+sN5cNuUmgD1llsrDO/U1hoyAkgOSEfxY5mVSvz45FHjcHyWnjnKM8CEu5eIyyD8eJ+NqMt4p8L4xTb/pEYXct0NN8TWIcrcRrrSFz8w4eNNhxHnwz45f+ZnuVukK8ez0V3B+Q7ZjlIQNxF2EyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729534011; c=relaxed/simple; bh=jge8LXwNVdS12BRounznNt3llG7RuWJYJrlD+L6Ahuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WpsESYuJdwZzH80HmlnmbT5qKAF4tdszfaWKpM/sa3+LI13RdyNiWTz5+3IC4OVzEhiwTTQA+HPxs5cioteMw3F8NiFwIboGDNAW9vHdUVMDl58OskctFoT+32ZNCRE6Wc6OMzJ5RmN+XKrW6BpJRdwlMQfdXxqYi/8hOrUXUU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FGZi/aBj; 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="FGZi/aBj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D72E4C4CEC3; Mon, 21 Oct 2024 18:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729534011; bh=jge8LXwNVdS12BRounznNt3llG7RuWJYJrlD+L6Ahuo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FGZi/aBjbsf4qEE3Nl826F1uh6lXvc5Ht7w0CjYzhEjo0dD2RP/bxO+l3AYBKC6l+ bq9extJfXw7orlJadC0WSXk/CRpJHyHp60/KfbY2nXim03Hny2Y+e6qEVhynz9fZxL cAjdh2ifFbxcphWq2mY/vJhXWp8ZAQyVr7XS+cvQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49915: drm/amd/display: Add NULL check for clk_mgr in dcn32_init_hw Date: Mon, 21 Oct 2024 20:02:03 +0200 Message-ID: <2024102123-CVE-2024-49915-42ec@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=2179; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jge8LXwNVdS12BRounznNt3llG7RuWJYJrlD+L6Ahuo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0z77BPKtvCdbKqr1bM5/5QMMcl3+gZk/v1Sv1NT5F p1fmpneEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZZ8yw4IRS+q0b1tUvIoIl ecSbas7PtvSPZpjD7bfOmeuKTsCCDlbRI93RNdI8xZIA 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: Add NULL check for clk_mgr in dcn32_init_hw This commit addresses a potential null pointer dereference issue in the `dcn32_init_hw` function. The issue could occur when `dc->clk_mgr` is null. The fix adds a check to ensure `dc->clk_mgr` is not null before accessing its functions. This prevents a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn32/dcn32_hwseq.c:961 dcn32_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 782) The Linux kernel CVE team has assigned CVE-2024-49915 to this issue. Affected and fixed versions =========================== Fixed in 6.10.14 with commit f0454b3cb058 Fixed in 6.11.3 with commit 7d1854c86d02 Fixed in 6.12-rc1 with commit c395fd47d156 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-49915 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/hwss/dcn32/dcn32_hwseq.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/f0454b3cb0584a6bf275aeb49be61a760fd546a2 https://git.kernel.org/stable/c/7d1854c86d02cea8f8a0c0ca05f4ab14292baf3d https://git.kernel.org/stable/c/c395fd47d1565bd67671f45cca281b3acc2c31ef