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 D683030217E for ; Fri, 5 Sep 2025 17:23:23 +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=1757093003; cv=none; b=DcJWens7II7/oBYRVshgeMKt5dhPwTE2E8xzHmciXwuJB430FHlC3eNnkhCbm3KV+AAcVeAhTBOeouudzgT4L2VGApWnzff6m3T14lid3+loCX6NyUellY8ZCtlSl7ABikAv7Oqtf1YJ8OCNRxFTgrfI0UUtyc0i+o9Fs2sibsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093003; c=relaxed/simple; bh=B3vpgvhcx0Up/LZ8BjhyM4YVPmxHaYAI8jv2z8LHS3g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qvCrkKqq3eDd5+n88/mq8gsqw97mfRxXfum3cJRPLCzqDQq8kvlGT84eJMiDCiOBRtPl6KtQSADgSZPpJThMW8ojoTQA26tYmPTpACwNFL87qnZB2qzx44PqKkB5rYmN7BPernKLrDHlLHwzHHugX33KEfp1MU9MsLgdW68E4vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SW8YAw/H; 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="SW8YAw/H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F137C4CEF1; Fri, 5 Sep 2025 17:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093003; bh=B3vpgvhcx0Up/LZ8BjhyM4YVPmxHaYAI8jv2z8LHS3g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SW8YAw/HcbD7detsDiTwWgqS06gHAuQDHKAuBk+dKikC2Q3BKHDlcl+LU82fEw2CV /4m/i+eWXF3/cKvt9OtthqSFmvYMcMFTWcIvfT3rKtbtSjCHJr8M3zTAtPkgzHATYY ekBt5GUkVpJNaXcnaLcD0MtJsUy+ndXLJ7kJ86a4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39705: drm/amd/display: fix a Null pointer dereference vulnerability Date: Fri, 5 Sep 2025 19:21:18 +0200 Message-ID: <2025090549-CVE-2025-39705-6ac5@gregkh> X-Mailer: git-send-email 2.51.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=2419; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=REYHzmMGWMzt0mJuNIUldzA+829zR/cjMTih4MLBFgY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT8qV/z4EjjhvnfBpStx9n7Li9Im3VZm443Vm6Ltu sprq09xRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzksjTDguuiHPO/NHQYx0yr Z2jmM9ommzU5hGGu5LpZ3W8/Ne/443f4oOexqek/tdVkAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: fix a Null pointer dereference vulnerability [Why] A null pointer dereference vulnerability exists in the AMD display driver's (DC module) cleanup function dc_destruct(). When display control context (dc->ctx) construction fails (due to memory allocation failure), this pointer remains NULL. During subsequent error handling when dc_destruct() is called, there's no NULL check before dereferencing the perf_trace member (dc->ctx->perf_trace), causing a kernel null pointer dereference crash. [How] Check if dc->ctx is non-NULL before dereferencing. (Updated commit text and removed unnecessary error message) (cherry picked from commit 9dd8e2ba268c636c240a918e0a31e6feaee19404) The Linux kernel CVE team has assigned CVE-2025-39705 to this issue. Affected and fixed versions =========================== Fixed in 6.12.44 with commit 0961673cc5f0055957aa46f25eb4ef6c07e00165 Fixed in 6.16.4 with commit 4ade995b9b25b3c6e8dc42c27070340f1358d8c8 Fixed in 6.17-rc1 with commit 1bcf63a44381691d6192872801f830ce3250e367 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-39705 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/0961673cc5f0055957aa46f25eb4ef6c07e00165 https://git.kernel.org/stable/c/4ade995b9b25b3c6e8dc42c27070340f1358d8c8 https://git.kernel.org/stable/c/1bcf63a44381691d6192872801f830ce3250e367