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 C382518637 for ; Tue, 2 Apr 2024 06:22:40 +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=1712038960; cv=none; b=G5PTSGvuHVKmpDqyhG4dKmzFrOEqX42ipUuZMCp3uUMEOPiEYU6mmEyfpayio/0SLJ+T1Z8ehC1tGI8FXimg0udT7pBQXOSOBSJwRcCQwYS6ST2/uD5OXpymhtntB9JVIeHVWhwT0MgkdUq6moStnHQAbVJn2XGFztZi7eFlGSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712038960; c=relaxed/simple; bh=qiG6LvdCtbDk5n/lGeCMXr1ZUojEDH5xxuYIXwPr490=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ba4CL2Cm6lM4LPmy9sLxAcb3kDr34dWLrwA1liLbZAf+y93PBfW5tvcwVae1BsYLqoRDEGeBT9LFDcuwP3rvvyT4AuURxaQE+DbzmGKdYToaTSw6jGokfNjVcNuVHChzVSYWPKI2hhPqh/YAgls72/27hTjA85QItnQh8uDJui4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eDPQdUHH; 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="eDPQdUHH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7C4FC433C7; Tue, 2 Apr 2024 06:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712038960; bh=qiG6LvdCtbDk5n/lGeCMXr1ZUojEDH5xxuYIXwPr490=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eDPQdUHHul5tZQx12QLgjyHsmb9qFUQzb6Msc4Oz7xYBbK8nNeXkyPd5vx4z+ieYp KckTDynv6mifunTIi4KtVF7NJVHkg3h0IE/AQ13UrLBQjFT3/22Ru6gOs0fCgzkF3p l5AsL5IsufhH0HhGN/HXCyuV8xWhq7IUk/h9vKW0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26667: drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup Date: Tue, 2 Apr 2024 08:22:31 +0200 Message-ID: <2024040224-CVE-2024-26667-cf72@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=2459; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qiG6LvdCtbDk5n/lGeCMXr1ZUojEDH5xxuYIXwPr490=; b=owGbwMvMwCRo6H6F97bub03G02pJDGncSxSalZaWR2v6JZy88u6BO1drxbQj/KWFDu8CLD4op LzKvGHWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5ModhwYYLW4IFSncLrHgS tKxqdnKJlhjHU4b5UX/T1/pM3R7d/vVTc3WizKtmll/OAA== 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/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup The commit 8b45a26f2ba9 ("drm/msm/dpu: reserve cdm blocks for writeback in case of YUV output") introduced a smatch warning about another conditional block in dpu_encoder_helper_phys_cleanup() which had assumed hw_pp will always be valid which may not necessarily be true. Lets fix the other conditional block by making sure hw_pp is valid before dereferencing it. Patchwork: https://patchwork.freedesktop.org/patch/574878/ The Linux kernel CVE team has assigned CVE-2024-26667 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit ae4d721ce100 and fixed in 6.1.78 with commit fb8bfc6ea3cd Issue introduced in 5.19 with commit ae4d721ce100 and fixed in 6.6.17 with commit 79592a6e7bdc Issue introduced in 5.19 with commit ae4d721ce100 and fixed in 6.7.5 with commit eb4f56f3ff57 Issue introduced in 5.19 with commit ae4d721ce100 and fixed in 6.8 with commit 7f3d03c48b1e 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-26667 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/msm/disp/dpu1/dpu_encoder.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/fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17 https://git.kernel.org/stable/c/79592a6e7bdc1d05460c95f891f5e5263a107af8 https://git.kernel.org/stable/c/eb4f56f3ff5799ca754ae6d811803a63fe25a4a2 https://git.kernel.org/stable/c/7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52