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 22C04157470 for ; Wed, 3 Apr 2024 17:32:06 +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=1712165527; cv=none; b=SMZlvCMbr2rVckEMu671WHPJZCdNJ0UHPpvvsLaBuCHUGi/va9uUhY6vL/j1cCTqb28MVxwukYB0IT9OufXCO1oKR7bXwOqLmTR7osY3qmPstCgZLMhKhpU/mx13es8TkzmBoqMDr+smiTbetBQBCIPaJJJxPTtsV9ZMTtOguR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165527; c=relaxed/simple; bh=YmQX3Z3Y1MqRgW3oMV0g58G8a8BCQn59RPxf21aBbqE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dp8Lcs0kNLhKmS+HKGdUzmzyH2IDVKOCDvGJvRP1L3XNXnQXFZat3QsbWMottxxOrlyaC52HvWLEutxfskKryGZErrTU8F3PPWeylE4in12yVO8Lf5a3yIoMrMUXcn+NR15mpQhXOfKCHlfClTCCcoG97E/PgFOhQF/pfOVuUvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BmMk0zlp; 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="BmMk0zlp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 363E0C433C7; Wed, 3 Apr 2024 17:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165526; bh=YmQX3Z3Y1MqRgW3oMV0g58G8a8BCQn59RPxf21aBbqE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BmMk0zlpAqfWcRTqZcIsqmpeRouZGwE05EbH81nZY9/VMvgWJR/14+JeauFA09urL UTjCkITT44Cp2LcnZ0CXNjWR+LPDuor56hRB7lOvvdRoCsUAEK2W7hCUAteJhT97ud OgguMqvDSgPdamvk5LTNQY/0GxFaa8/MVcanuZTc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26729: drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv Date: Wed, 3 Apr 2024 19:30:59 +0200 Message-ID: <2024040357-CVE-2024-26729-2f3e@gregkh> X-Mailer: git-send-email 2.44.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=2589; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YmQX3Z3Y1MqRgW3oMV0g58G8a8BCQn59RPxf21aBbqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8kwItXqY51eZcDE8MuxXS9iK0adUlziMXJnx8Eb9av uJYrlhLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEdQLDgoPvTWsSD8wXE1vi +XVqgIWe/V71pQxzZadxRugob5XVn/zfy3Vn+1QTHllWAA== 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: Fix potential null pointer dereference in dc_dmub_srv Fixes potential null pointer dereference warnings in the dc_dmub_srv_cmd_list_queue_execute() and dc_dmub_srv_is_hw_pwr_up() functions. In both functions, the 'dc_dmub_srv' variable was being dereferenced before it was checked for null. This could lead to a null pointer dereference if 'dc_dmub_srv' is null. The fix is to check if 'dc_dmub_srv' is null before dereferencing it. Thus moving the null checks for 'dc_dmub_srv' to the beginning of the functions to ensure that 'dc_dmub_srv' is not null when it is dereferenced. Found by smatch & thus fixing the below: drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:133 dc_dmub_srv_cmd_list_queue_execute() warn: variable dereferenced before check 'dc_dmub_srv' (see line 128) drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:1167 dc_dmub_srv_is_hw_pwr_up() warn: variable dereferenced before check 'dc_dmub_srv' (see line 1164) The Linux kernel CVE team has assigned CVE-2024-26729 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 028bac583449 and fixed in 6.7.7 with commit 351080ba3414 Issue introduced in 6.7 with commit 028bac583449 and fixed in 6.8 with commit d2b48f340d9e 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-26729 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/351080ba3414c96afff0f1338b4aeb2983195b80 https://git.kernel.org/stable/c/d2b48f340d9e4a8fbeb1cdc84cd8da6ad143a907