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 0FC1B29CA for ; Wed, 22 May 2024 06:20:03 +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=1716358803; cv=none; b=GFPqV27TTLvlDAwkGhr+TuFC/QinrfbNzpvin2utwgb3vDLsjYS3UYw2XOLzYZCyenT6AeosuNrziIdA0PhJhahOqMoKx4cfBp66R29NiU7AN8Q+Q0gLnxV3XZ6/oUuaaCuNfjpSPxDDim2jxtVJLKZPsECGTwriZ0YaqL/neLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716358803; c=relaxed/simple; bh=Zo0phPSFHi12NJ9i37f+fobEia7gG179DF+4A4tR5Jg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ONgc4UYKw+JOLyxNDaBmNgoAd8Lb/FGTGu3+TyZ/pJOGoHm77VRZ98YrqSsccMlWmJr+l9m0cIwp65vzOeZ+rxUNEpCEtBB9bUMvSZ3p4gTBUi+zJCY7FV6LUDyUY4KZnMLrdsGL2KOAWG22SW825FuW5wUv4qvcGs5NG84ipcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pIryj68n; 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="pIryj68n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88A49C2BD11; Wed, 22 May 2024 06:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716358802; bh=Zo0phPSFHi12NJ9i37f+fobEia7gG179DF+4A4tR5Jg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pIryj68nifv60YkFZY8HfdFU23OLwYz1UC3gkqSubE96j7WfbmLGWKV35laANgjZf rMegbXvA5+fMZ9Rcl/dXQwSFGzteoIz+BRRH8kaYFAT6mQOQLaVgf+zmQ7tbmo1zyY hZ6PbpapZCv7Mmj87B2H8NBketgciaJ4CfqVCGCg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47445: drm/msm: Fix null pointer dereference on pointer edp Date: Wed, 22 May 2024 08:19:48 +0200 Message-ID: <2024052241-CVE-2021-47445-3659@gregkh> X-Mailer: git-send-email 2.45.1 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=2959; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zo0phPSFHi12NJ9i37f+fobEia7gG179DF+4A4tR5Jg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+fbX823qm8PJ6NbjYmMVGO371YNY0KPs7heHMfPUcS bZ3f7k6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJKGxjmyvJbKn/Y/1Z2Qsd+ 5+eGVwpCDDjlGOb7rj397x0vS1jT6gcux6KkZKaly0UAAA== 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: Fix null pointer dereference on pointer edp The initialization of pointer dev dereferences pointer edp before edp is null checked, so there is a potential null pointer deference issue. Fix this by only dereferencing edp after edp has been null checked. Addresses-Coverity: ("Dereference before null check") The Linux kernel CVE team has assigned CVE-2021-47445 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 4.4.290 with commit f175b9a83e5c Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 4.9.288 with commit bacac7d26849 Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 4.14.252 with commit 0cd063aa0a09 Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 4.19.213 with commit 7f642b93710b Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 5.4.155 with commit f302be08e3de Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 5.10.75 with commit 91a340768b01 Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 5.14.14 with commit 46c8ddede027 Issue introduced in 4.0 with commit ab5b0107ccf3 and fixed in 5.15 with commit 2133c4fc8e13 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-2021-47445 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/edp/edp_ctrl.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/f175b9a83e5c252d7c74acddc792840016caae0a https://git.kernel.org/stable/c/bacac7d26849c8e903ceb7466d9ce8dc3c2797eb https://git.kernel.org/stable/c/0cd063aa0a09822cc1620fc59a67fe2f9f6338ac https://git.kernel.org/stable/c/7f642b93710b6b1119bdff90be01e6b5a2a5d669 https://git.kernel.org/stable/c/f302be08e3de94db8863a0b2958b2bb3e8e998e6 https://git.kernel.org/stable/c/91a340768b012f5b910a203a805b97a345b3db37 https://git.kernel.org/stable/c/46c8ddede0273d1d132beefa9de8b820326982be https://git.kernel.org/stable/c/2133c4fc8e1348dcb752f267a143fe2254613b34