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 CB631208C4 for ; Mon, 26 Aug 2024 10:23:37 +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=1724667817; cv=none; b=XVmLOuBz0eZAFqkwXIrPDow4shKVZUqj0QPq8dbnJnAiZHh7suK4b1Hj9bJNO9i1+NviowCIqBc1A1zmiHyLQsooKtDOeLtuodZwZVR+dENqJuAOSN6CRdgcsFTgNHxkdGjI81J3K7P7qG+vboUQSqCv68uxt/+VwDvkfkSabTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667817; c=relaxed/simple; bh=t4CJY73Ram+UVSyWYbDzA0M5S+MmgK+GbcbQcQc1BZQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZYy+HqAgAzSYrxfxYCrZocq2A4qNDtNu+AXT5pK/nX4uGwlgmrmHHEMKFAUJvDhGZOBVW5RbBdykjjikjW5lxIgLUgrMMAIoB93twZKDqebmlFSRznXBwz/NnO8hoi6m6MDMolTIa/9deSnB4tg9U4DdIay3a0EujhJ1hZaqyOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q1FGNZKY; 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="Q1FGNZKY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51592C582B5; Mon, 26 Aug 2024 10:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667817; bh=t4CJY73Ram+UVSyWYbDzA0M5S+MmgK+GbcbQcQc1BZQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Q1FGNZKYBawuzxZ5UVSpUQqsSDy/55If4AbuvTRvu5Hfx938GXrTqwfA2VLeVudaR GR9Kdf6hTbzao69Ii82MhVmxfB+mcNM10yo4xaSu53ixcV0cemhcHfdicRXtm1LMmQ CzH93rDG63kG3eIhdQWzpkIvwpJMvGrKF0oLVf4E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43904: drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing Date: Mon, 26 Aug 2024 12:17:12 +0200 Message-ID: <2024082621-CVE-2024-43904-63a1@gregkh> X-Mailer: git-send-email 2.46.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=2462; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t4CJY73Ram+UVSyWYbDzA0M5S+MmgK+GbcbQcQc1BZQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwozelTTynWYpfqlZtvPCqyqN8pQdJgrPdCqWMb5+Y XzfdrV0RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEtYlhnt1mu5vNpedFF9kn CMa6b9frzQ78wrBgthrvo8SrXbKX3iy9+e7TpEPVT6ruAgA= 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 checks for 'stream' and 'plane' before dereferencing This commit adds null checks for the 'stream' and 'plane' variables in the dcn30_apply_idle_power_optimizations function. These variables were previously assumed to be null at line 922, but they were used later in the code without checking if they were null. This could potentially lead to a null pointer dereference, which would cause a crash. The null checks ensure that 'stream' and 'plane' are not null before they are used, preventing potential crashes. Fixes the below static smatch checker: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:938 dcn30_apply_idle_power_optimizations() error: we previously assumed 'stream' could be null (see line 922) drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:940 dcn30_apply_idle_power_optimizations() error: we previously assumed 'plane' could be null (see line 922) The Linux kernel CVE team has assigned CVE-2024-43904 to this issue. Affected and fixed versions =========================== Fixed in 6.10.5 with commit 16a8a2a839d1 Fixed in 6.11-rc1 with commit 15c2990e0f01 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-43904 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/dcn30/dcn30_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/16a8a2a839d19c4cf7253642b493ffb8eee1d857 https://git.kernel.org/stable/c/15c2990e0f0108b9c3752d7072a97d45d4283aea