{"id":"CVE-2022-50368","state":"PUBLISHED","title":"drm/msm/dsi: fix memory corruption with too many bridges","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/dsi: fix memory corruption with too many bridges\n\nAdd the missing sanity check on the bridge counter to avoid corrupting\ndata beyond the fixed-sized bridge array in case there are ever more\nthan eight bridges.\n\nPatchwork: https://patchwork.freedesktop.org/patch/502668/","publishedAt":"2025-09-17T14:56:24.102Z","updatedAt":"2026-08-05T08:58:27.178Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"4e5587cddb334f7a5bb1c49ea8bbfc966fafe1b8","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"f649ed0e1b7a1545f8e27267d3c468b3cb222ece","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"21c4679af01f1027cb559330c2e7d410089b2b36","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"9f035d1fb30648fe70ee01627eb131c56d699b35","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"e83b354890a3c1d5256162f87a6cc38c47ae7f20","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"2e786eb2f9cebb07e317226b60054df510b60c65","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/dsi/dsi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"4.19.264","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.223","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.153","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.77","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.7","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/dsi/dsi.c"]}],"references":["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"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50368.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50368","state":"PUBLISHED","datePublished":"2025-09-17T14:56:24.102Z","dateUpdated":"2026-08-05T08:58:27.178Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:06.995Z"},"containers":{"cna":{"title":"drm/msm/dsi: fix memory corruption with too many bridges","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/dsi: fix memory corruption with too many bridges\n\nAdd the missing sanity check on the bridge counter to avoid corrupting\ndata beyond the fixed-sized bridge array in case there are ever more\nthan eight bridges.\n\nPatchwork: https://patchwork.freedesktop.org/patch/502668/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"4e5587cddb334f7a5bb1c49ea8bbfc966fafe1b8","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"f649ed0e1b7a1545f8e27267d3c468b3cb222ece","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"21c4679af01f1027cb559330c2e7d410089b2b36","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"9f035d1fb30648fe70ee01627eb131c56d699b35","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"e83b354890a3c1d5256162f87a6cc38c47ae7f20","versionType":"git"},{"version":"a689554ba6ed81cf606c16539f6ffc2a1dcdaf8e","status":"affected","lessThan":"2e786eb2f9cebb07e317226b60054df510b60c65","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/dsi/dsi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"4.19.264","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.223","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.153","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.77","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.7","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/dsi/dsi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4e5587cddb334f7a5bb1c49ea8bbfc966fafe1b8"},{"url":"https://git.kernel.org/stable/c/f649ed0e1b7a1545f8e27267d3c468b3cb222ece"},{"url":"https://git.kernel.org/stable/c/21c4679af01f1027cb559330c2e7d410089b2b36"},{"url":"https://git.kernel.org/stable/c/9f035d1fb30648fe70ee01627eb131c56d699b35"},{"url":"https://git.kernel.org/stable/c/e83b354890a3c1d5256162f87a6cc38c47ae7f20"},{"url":"https://git.kernel.org/stable/c/2e786eb2f9cebb07e317226b60054df510b60c65"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The OOB write occurs only in msm_dsi_modeset_init during local MSM DRM aggregate bind (msm_drm_bind → MDP4/MDP5/DPU kms_init → msm_dsi_modeset_init), reached via boot OF probe, module load, or sysfs bind—not via network or adjacent-link input.\nAC:L - Once num_bridges reaches MAX_BRIDGES (8)—including via coexisting probe-deferral/rebind cycles on Qualcomm MSM display stacks—the unchecked bridges[num_bridges++] store of msm_dsi->bridge is deterministic with no race or attacker-uncontrollable memory layout.\nPR:L - Forcing rebind via sysfs/module reload needs CAP_SYS_ADMIN/CAP_SYS_MODULE, but the same modeset_init path also runs on ordinary boot-time probe of Qualcomm MSM/Android display components with no credentials; resolving that ambiguity toward higher severity gives Low.\nUI:N - Probe/bind and driver-core rebind of the MSM DSI component run entirely in kernel context; no victim mount, file open, or other interactive action is required.\nS:U - The corruption is of host-kernel msm_drm_private fields (bridges[] into adjacent vram metadata) within the same OS security authority; it does not cross a VM, IOMMU, or sandbox boundary.\nC:H - The missing bounds check is an out-of-bounds write of a drm_bridge pointer past bridges[MAX_BRIDGES] into adjacent kernel state (vram size/paddr/drm_mm), which per guidance yields High confidentiality via memory-corruption disclosure primitives.\nI:H - Out-of-bounds writes of kernel pointers into adjacent msm_drm_private VRAM/drm_mm fields are integrity High: they corrupt allocator/VRAM metadata and enable write/control-flow hijack primitives beyond a pure crash.\nA:H - Corrupting vram metadata and overrunning the fixed bridges array predictably causes kernel oops/panic or hang on subsequent DRM teardown or VRAM use, which is Availability High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:58:27.178Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"4.19.264"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.4.223"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.77"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.0.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-50368","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-14T18:35:26.283766Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","type":"CWE","description":"CWE-787 Out-of-bounds Write"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:42:59.501Z"}}]}}}