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 64A781F4FD6 for ; Mon, 21 Oct 2024 18:04:25 +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=1729533865; cv=none; b=MEmNKiSN+un8i5GOQfrGDF+2vH3alZ8+DRlrcJf+c9mv1b25E/Lblc93GMoucnsZNLD12cser7CW9QiFX92ItnAd4r2B4Q5GJOGdI75wDEmVGcvX9/QdWuVsD1U699K+K2+dwnGC/WC4cBPlddFeXndLwHQoT5IIT20rJBjDBYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533865; c=relaxed/simple; bh=dwDhgHHC/+kkv+bBCD7xm1D+beqMewq4cvktYi3JcDU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EoSCRgPimWWesrBB7qU6u68Pnsa+QWuLFGLjZs3tizmFVoShfvutu7S1Yp0oHFJA+g610aUzw4Tiju5FOog3f40isY1sMCc+wWKGqSbvfunTFtoJWIJRASVloKxaAtP0lWypLg/SAV3m1D+n5Xka5FI/wvIik3GnJFHi+9Ur8Js= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=smaUR0/j; 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="smaUR0/j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDF13C4CEC3; Mon, 21 Oct 2024 18:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533865; bh=dwDhgHHC/+kkv+bBCD7xm1D+beqMewq4cvktYi3JcDU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=smaUR0/jOCXHE+jwFKl966sCYuD/3EWAc67Pqlomoz5C4F7MXYoct9RD3R/uXNDYK 5ANhRcA+fVphcYCYukC1QjQtz6+6AxHvqsw9siwtKVT4yuP5fSs6o2PV7BwgnxROT8 9Tvqa3GqhQCWcifzjSCoZqf8+cmTHOd9/N4LK0rM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49914: drm/amd/display: Add null check for pipe_ctx->plane_state in dcn20_program_pipe Date: Mon, 21 Oct 2024 20:02:02 +0200 Message-ID: <2024102122-CVE-2024-49914-477e@gregkh> X-Mailer: git-send-email 2.47.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=2086; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dwDhgHHC/+kkv+bBCD7xm1D+beqMewq4cvktYi3JcDU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0z5J1BhIzLLPnNpZ3rTa0ia0JazwLZdJmjbrs+rt9 8QaM2w6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJuZxnmikwKnSO8TfWfrdzS U3dnWByy3TjZlWFB/xSnghXL7DW1nhmdXaC1KE/oCut2AA== 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 check for pipe_ctx->plane_state in dcn20_program_pipe This commit addresses a null pointer dereference issue in the `dcn20_program_pipe` function. The issue could occur when `pipe_ctx->plane_state` is null. The fix adds a check to ensure `pipe_ctx->plane_state` is not null before accessing. This prevents a null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn20/dcn20_hwseq.c:1925 dcn20_program_pipe() error: we previously assumed 'pipe_ctx->plane_state' could be null (see line 1877) The Linux kernel CVE team has assigned CVE-2024-49914 to this issue. Affected and fixed versions =========================== Fixed in 6.11.3 with commit 65a6fee22d5c Fixed in 6.12-rc1 with commit 8e4ed3cf1642 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-49914 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/dcn20/dcn20_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/65a6fee22d5cfa645cb05489892dc9cd3d142fc2 https://git.kernel.org/stable/c/8e4ed3cf1642df0c4456443d865cff61a9598aa8