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 860203BD643 for ; Fri, 26 Jun 2026 19:43:26 +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=1782503007; cv=none; b=JNCz/auxmWdcV3KKUxfiFAHxp8aXPFnQWWIe7YfPGn+jd6uHySfDw8/NmJL1m5GcvxgLiztVatVxxbuxOVx7E8drpPGFqmLMFx4ni8dTSoeOOugVf4JpGLXlDzfJnMEIgmNwVfDWboo6E8p3DUaW0/Uojp8ARqJLArxAR0YiGQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782503007; c=relaxed/simple; bh=FfuZL6raImg3gzIftof58/L6k6PzbEsCRiNa6KmgTP4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FHJwMXDTJ3zkz2U2seByf4MkTcz/6G78a4qJ5M3jgtwNTmm07/9skS5h4KFs1qhIEyfvSSaf8XfNE199T5tufEN+TeaE2EPKmy0gMdIqnQFwrQJ+ftqS1GNucpUge/qj02EiWPEl3wylLuvPFgvt9ZXlLmhL1SioIsOuwsvZzO0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gIO9N8TY; 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="gIO9N8TY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCAD01F000E9; Fri, 26 Jun 2026 19:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782503006; bh=zv6hR/saIKPZPYrYiw1sFAFoHj7v7Gfejia+3oKLxCY=; h=From:To:Cc:Subject:Date:Reply-To; b=gIO9N8TYMzpFmqqsmZ2BfRkgjAyouzSVqhLnMkz79vohfGOfGnQKkzdVS7CHwv70J zpv2O5lzz8xy91nM5CMaQdCPX6V/fQGBKy4hTJq5VFQ2rLNpufA6tJs1aKKFdd55bk b4bbFkei8/WlmO3ckuZgrXmzdKDx4mR7SS0gMwHg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53313: drm/amd/display: Avoid NULL dereference in dc_dmub_srv error paths Date: Fri, 26 Jun 2026 20:40:46 +0100 Message-ID: <2026062621-CVE-2026-53313-4106@gregkh> X-Mailer: git-send-email 2.54.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=2616; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TADwNq4XDa1JPCDgAPBnM0oQCAi6l3GsOssJgmmhkks=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2V5e+Lnd81re588qb+8lu+lPmJHxuuRgYlnB8Wkefm tQLW6UHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxTYM8wtt5775sbV8wdn3 3GZn85rmSiq5b2eYzSIrZ1PIktp6Md3VbKsy44H32+7YAAA= 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: Avoid NULL dereference in dc_dmub_srv error paths In dc_dmub_srv_log_diagnostic_data() and dc_dmub_srv_enable_dpia_trace(). Both functions check: if (!dc_dmub_srv || !dc_dmub_srv->dmub) and then call DC_LOG_ERROR() inside that block. DC_LOG_ERROR() uses dc_dmub_srv->ctx internally. So if dc_dmub_srv is NULL, the logging itself can dereference a NULL pointer and cause a crash. Fix this by splitting the checks. First check if dc_dmub_srv is NULL and return immediately. Then check dc_dmub_srv->dmub and log the error only when dc_dmub_srv is valid. Fixes the below: ../display/dc/dc_dmub_srv.c:962 dc_dmub_srv_log_diagnostic_data() error: we previously assumed 'dc_dmub_srv' could be null (see line 961) ../display/dc/dc_dmub_srv.c:1167 dc_dmub_srv_enable_dpia_trace() error: we previously assumed 'dc_dmub_srv' could be null (see line 1166) The Linux kernel CVE team has assigned CVE-2026-53313 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 2631ac1ac328189031d1aefbbd4929050f72fb23 and fixed in 7.0.10 with commit b37a978e6d8c33fbfa4abc5dcca4c7cfc6d01f22 Issue introduced in 5.14 with commit 2631ac1ac328189031d1aefbbd4929050f72fb23 and fixed in 7.1 with commit 4ae3e16f4b3bf64140f773629b765d605ee079a9 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-53313 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/dc_dmub_srv.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/b37a978e6d8c33fbfa4abc5dcca4c7cfc6d01f22 https://git.kernel.org/stable/c/4ae3e16f4b3bf64140f773629b765d605ee079a9