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 B74402C21FE for ; Wed, 17 Sep 2025 14:57:00 +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=1758121020; cv=none; b=MvEdE6oHDG5QuWBrjDg4OgjOfym3F+mgvkw8hz9vFTVMGkxnaWVdqEcDF6ceKmwZZ9X+RWyLz8tkzTkjUZYQgaoRGl/uljdqkStRrUnxIUPAqm/MwUtRpUe1s4mdQcoOr8kZh3TycmJsTp0jKJqcG/ontWBwNwdyA/c2jWkoZ24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121020; c=relaxed/simple; bh=N2HoneMCToMiEQO3i1Sc4A1EqEDX6+q4oMZNRi3UmjU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TpD305pLZMbaJfmqnkof733CSxBVmrg6tfy98voptfTaO9K9diWpMhvpN471igG+KeQhpo2yNFsaVH9KJILXQat8XYjICmrK34n7bWHcRqrPm2hLTHwZOHi6wn8l0c+t8/Uko72ANovAvroz0/io1fqYrLdj5D/QGPg90WOQuI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aSaHHUqv; 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="aSaHHUqv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D70C5C4CEE7; Wed, 17 Sep 2025 14:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121020; bh=N2HoneMCToMiEQO3i1Sc4A1EqEDX6+q4oMZNRi3UmjU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aSaHHUqvVpXuEbHptyX4ZfG5y4JV/q3xEAOnPaCWDf3iktrt2feVqp0F8jwYJeIUp EpNvqP7WdTUy2Ir/RnTp5e0WVdPB+z4KwEwTqIJPLIuryUOhHWeD+GigZTAM6Ofrm/ /PfRywjLcl517xgfQzQn3syiu6Xhk1f4KAqNCy/k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50368: drm/msm/dsi: fix memory corruption with too many bridges Date: Wed, 17 Sep 2025 16:56:27 +0200 Message-ID: <2025091716-CVE-2022-50368-ae84@gregkh> X-Mailer: git-send-email 2.51.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=2902; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=liy2xuBHNScUHnlyq1Qn9PJUvMM331vdhGnCwXkm2pU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzghc+Xh4Y9HMR7rXz+lpSET6MMbyv2L6VNf66P+cX 9EsGpV1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRFwYM8yNffzwpxNlZ2TbZ cVIGW+zB12lftjPMFc9MML/MlbBva9yVclWlBQ9fvK+eBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/msm/dsi: fix memory corruption with too many bridges Add the missing sanity check on the bridge counter to avoid corrupting data beyond the fixed-sized bridge array in case there are ever more than eight bridges. Patchwork: https://patchwork.freedesktop.org/patch/502668/ The Linux kernel CVE team has assigned CVE-2022-50368 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 4.19.264 with commit 4e5587cddb334f7a5bb1c49ea8bbfc966fafe1b8 Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 5.4.223 with commit f649ed0e1b7a1545f8e27267d3c468b3cb222ece Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 5.10.153 with commit 21c4679af01f1027cb559330c2e7d410089b2b36 Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 5.15.77 with commit 9f035d1fb30648fe70ee01627eb131c56d699b35 Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 6.0.7 with commit e83b354890a3c1d5256162f87a6cc38c47ae7f20 Issue introduced in 4.1 with commit a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e and fixed in 6.1 with commit 2e786eb2f9cebb07e317226b60054df510b60c65 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-50368 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/dsi.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/4e5587cddb334f7a5bb1c49ea8bbfc966fafe1b8 https://git.kernel.org/stable/c/f649ed0e1b7a1545f8e27267d3c468b3cb222ece https://git.kernel.org/stable/c/21c4679af01f1027cb559330c2e7d410089b2b36 https://git.kernel.org/stable/c/9f035d1fb30648fe70ee01627eb131c56d699b35 https://git.kernel.org/stable/c/e83b354890a3c1d5256162f87a6cc38c47ae7f20 https://git.kernel.org/stable/c/2e786eb2f9cebb07e317226b60054df510b60c65