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 9B5431AB524 for ; Thu, 20 Jun 2024 11:18:54 +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=1718882334; cv=none; b=ZaQM6x/5xg4YWua7EDd0HuXUYiE8seE3wLDv+HqIdFGtfGc4JXDS8juv04mVe2KDDj3TMceuGz//INpVuaSaAqEy79VASieNPNMa8uIpG0sYzCcynshiMhnLjpm5J29OaQBI2Q1UrlNc8MKOwjdeyPMQFvhjcq2EnS6Yafa+uBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882334; c=relaxed/simple; bh=4DGfJQVd80VcuI/XV1+IickwcEA54T7e+SeYYvVB3Ek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ViFLHCZiKtZ7Gt3Xt+dcnBkzDBKmRDiE1+SkN0gLqBVKMxhMUES+pB43rz7f7z60B2XqhIaxEpYU4c7sRqM9nzJP2GxRFr/TXTZTbR7rrGPf1zaDsxx1Mu7BhrCQokrJ+riZxnw9ugW8dvdik2dqhd6k01/cYE2H5aShpJ+SMkk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=busTtJP9; 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="busTtJP9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232E1C2BD10; Thu, 20 Jun 2024 11:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882334; bh=4DGfJQVd80VcuI/XV1+IickwcEA54T7e+SeYYvVB3Ek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=busTtJP9bYX3Cbsq34MH2MXijim2jkh7CsOLNkcWbr2GYYjaVcTmByBdoJyhNsgKj MmugNxl3DoFjmhFVT2WQqlwzrm1VH7uCvK8+bH6Se0x1xLKVm2vcopQcxHGAF888Cm aYogno/9oZlKFJ5fBmHhMLFUGH4FNbFCWpJMIr4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48756: drm/msm/dsi: invalid parameter check in msm_dsi_phy_enable Date: Thu, 20 Jun 2024 13:16:36 +0200 Message-ID: <2024062007-CVE-2022-48756-fc26@gregkh> X-Mailer: git-send-email 2.45.2 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=2791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4DGfJQVd80VcuI/XV1+IickwcEA54T7e+SeYYvVB3Ek=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/OU/DexsfaT3rLk6Tyf38cuGde+yrjJIXvP88PzWg 5d8Hn9TO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS9MY5umvXqv7ycg12/3G u20PnYRO/zRkUWCYHxi6PWe5YXgwm8/WD7cWpaSfiFOqAgA= 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/dsi: invalid parameter check in msm_dsi_phy_enable The function performs a check on the "phy" input parameter, however, it is used before the check. Initialize the "dev" variable after the sanity check to avoid a possible NULL pointer dereference. Addresses-Coverity-ID: 1493860 ("Null pointer dereference") The Linux kernel CVE team has assigned CVE-2022-48756 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 5c8290284402 and fixed in 4.14.265 with commit 6d9f8ba28f37 Issue introduced in 4.3 with commit 5c8290284402 and fixed in 4.19.228 with commit ca63eeb70fcb Issue introduced in 4.3 with commit 5c8290284402 and fixed in 5.4.176 with commit 581317b1f001 Issue introduced in 4.3 with commit 5c8290284402 and fixed in 5.10.96 with commit 79c0b5287ded Issue introduced in 4.3 with commit 5c8290284402 and fixed in 5.15.19 with commit 56480fb10b97 Issue introduced in 4.3 with commit 5c8290284402 and fixed in 5.16.5 with commit 2b7e7df1eacd Issue introduced in 4.3 with commit 5c8290284402 and fixed in 5.17 with commit 5e761a228723 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-2022-48756 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/dsi/phy/dsi_phy.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/6d9f8ba28f3747ca0f910a363e46f1114856dbbe https://git.kernel.org/stable/c/ca63eeb70fcb53c42e1fe54e1735a54d8e7759fd https://git.kernel.org/stable/c/581317b1f001b7509041544d7019b75571daa100 https://git.kernel.org/stable/c/79c0b5287ded74f4eacde4dfd8aa0a76cbd853b5 https://git.kernel.org/stable/c/56480fb10b976581a363fd168dc2e4fbee87a1a7 https://git.kernel.org/stable/c/2b7e7df1eacd280e561ede3e977853606871c951 https://git.kernel.org/stable/c/5e761a2287234bc402ba7ef07129f5103bcd775c