Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 08CEF330675 for ; Fri, 28 Aug 2026 06:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787900082; cv=none; b=uDnbJCVX3fxNXA5oKTD7IL9XWWmBIouXJ8MMCAr8LCzfqrVSxOEVou40RTToTLVGazf/zGUi9UkntmQz6WHh9rMcZOYBBFaUb+/LO2nArhHodNoPpta9hkrhlFnQlbqnmFiLDH2ZOIKR68lrE1rv3EdbWcmpzxOzq6nJ8c8jfAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787900082; c=relaxed/simple; bh=u20J7P18S6Zd3oclhDNif+058jzWV1yTVIPxBbNsw/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uhtuZIa6A+tmWA2WVRnFgfgqqXlcGAHI9/WsyWme0yNjfR6OcnWJh4jYLczKmRSQvE1OoRamEjmFCiyvb7aJrctBt5cE14yi/QYhcBGEl27Rg8wP0CkvEchRU4I9MaLDSjSL1c079KdUFmSnGXCdtqRzI0ltI4vfJU695uGgxos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dwR6stZl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dwR6stZl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 667821F000E9; Fri, 28 Aug 2026 06:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787900080; bh=PXu6/lFcS8YX7q7avU4+kugJOfPqLsx5TTBj7qC8r2g=; h=From:To:Cc:Subject:Date:Reply-To; b=dwR6stZlIACYaaWmaboDdOigq2Cpc4hrngCgXDxYqNqRx0ODPFjGz5SUU84dGuG1I MkJSBXXs2xkBiUsVC5RscMYLB1wL54tGJY0GunfqQcprhkHTcfl2co+Mv7xUJyl2Yt LW4D5G0hAH9LLaIbIqY/ABdfx0beRHgpHnXm2Bhs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80704: drm/amd/display: use proper context for logging Date: Fri, 28 Aug 2026 08:53:27 +0200 Message-ID: <2026082807-CVE-2026-80704-04d4@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3511; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IyI7HVRXbI66EG16yPCrlGg5c1iOKvLh8jeV7Im27Jo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkTDYINu9ZK7P0s43M30eZBpfjatRVveTMkX9Rn5Igzb pPjVSvqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn0RzPMLxF57XJZeK1zxTvO ude2ddR62qUqM8yzWrdmdsWcEnVlkS/eLouC6yYx8c4AAA== 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: use proper context for logging The same as the rest of the code, get_ss_info_from_atombios() uses calc_pll_cs->ctx->logger for logging. But calc_pll_cs->ctx is initialized only later in calc_pll_max_vco_construct(). Therefore, any output using DC_LOG_SYNC() leads to a NULL pointer deference in get_ss_info_from_atombios(). According to Sashiko, the very same problem exists in dce112_get_pix_clk_dividers() and dcn3_get_pix_clk_dividers() too. To avoid accessing the NULL context, use clk_src->base.ctx->logger everywhere. That context in base is initialized earlier in dce110_clk_src_construct() and dce112_clk_src_construct(). Before get_ss_info_from_atombios() or Sashiko's get_pix_clk_dividers functions above are actually called. This is done by redefining DC_LOGGER to CTX->logger. Before: dce110_clk_src_construct() did: -> sets clk_src->base.ctx = ctx; -> ss_info_from_atombios_create() -> get_ss_info_from_atombios() <- uses calc_pll_cs->ctx # BOOM -> calc_pll_max_vco_construct() <- sets calc_pll_cs->ctx After: dce110_clk_src_construct() does: -> sets clk_src->base.ctx = ctx; -> ss_info_from_atombios_create() -> get_ss_info_from_atombios() <- uses clk_src->base.ctx (cherry picked from commit 6f16fcbb0c46a87e3d9685407e906573d60104b0) The Linux kernel CVE team has assigned CVE-2026-80704 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit 1296423bf23c7a58133970e223b1f47ec6570308 and fixed in 6.12.103 with commit a94e62b7c7018fcfe0251e53fa96af30f12d923a Issue introduced in 4.17 with commit 1296423bf23c7a58133970e223b1f47ec6570308 and fixed in 6.18.44 with commit 02647d98340738f918690ed227fdcf154db1b84a Issue introduced in 4.17 with commit 1296423bf23c7a58133970e223b1f47ec6570308 and fixed in 7.1.8 with commit f556bc844cc4423e5ad41ae41a4c24f1cf75b978 Issue introduced in 4.17 with commit 1296423bf23c7a58133970e223b1f47ec6570308 and fixed in 7.2 with commit 114b42507b6a23d9d24e24e4ef165233332c64d4 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-2026-80704 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/dce/dce_clock_source.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/a94e62b7c7018fcfe0251e53fa96af30f12d923a https://git.kernel.org/stable/c/02647d98340738f918690ed227fdcf154db1b84a https://git.kernel.org/stable/c/f556bc844cc4423e5ad41ae41a4c24f1cf75b978 https://git.kernel.org/stable/c/114b42507b6a23d9d24e24e4ef165233332c64d4