{"id":"CVE-2022-50437","state":"PUBLISHED","title":"drm/msm/hdmi: fix memory corruption with too many bridges","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/hdmi: 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/502670/","publishedAt":"2025-10-01T11:42:14.400Z","updatedAt":"2026-08-05T08:58:47.939Z","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":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"a9c1a6991a9b5aa6d0f2cbc9b8c3bf6c4d094dfa","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"e8f916b84e4b028ecad6c6472eaad543cc7df806","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"3c43f3ec731c233eb84b66199ee76dbf3ec6ecae","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"ed7f1ff87a4afea1bc220d2ff00a7ce8e61f0b53","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"08c7375fa27a8ceee028868e03ffb3a0db919d44","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"b48949ab451eaf1e2c04c272c8a9a96a2b56546f","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"9efb45b45ff6254bfd1f1997a06725cb3fc998a5","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"4c1294da6aed1f16d47a417dcfe6602833c3c95c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/hdmi/hdmi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"4.9.332","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.298","status":"unaffected","lessThanOrEqual":"4.14.*","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/hdmi/hdmi.c"]}],"references":["https://git.kernel.org/stable/c/a9c1a6991a9b5aa6d0f2cbc9b8c3bf6c4d094dfa","https://git.kernel.org/stable/c/e8f916b84e4b028ecad6c6472eaad543cc7df806","https://git.kernel.org/stable/c/3c43f3ec731c233eb84b66199ee76dbf3ec6ecae","https://git.kernel.org/stable/c/ed7f1ff87a4afea1bc220d2ff00a7ce8e61f0b53","https://git.kernel.org/stable/c/08c7375fa27a8ceee028868e03ffb3a0db919d44","https://git.kernel.org/stable/c/b48949ab451eaf1e2c04c272c8a9a96a2b56546f","https://git.kernel.org/stable/c/9efb45b45ff6254bfd1f1997a06725cb3fc998a5","https://git.kernel.org/stable/c/4c1294da6aed1f16d47a417dcfe6602833c3c95c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50437.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50437","state":"PUBLISHED","datePublished":"2025-10-01T11:42:14.400Z","dateUpdated":"2026-08-05T08:58:47.939Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:07.010Z"},"containers":{"cna":{"title":"drm/msm/hdmi: fix memory corruption with too many bridges","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/hdmi: 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/502670/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"a9c1a6991a9b5aa6d0f2cbc9b8c3bf6c4d094dfa","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"e8f916b84e4b028ecad6c6472eaad543cc7df806","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"3c43f3ec731c233eb84b66199ee76dbf3ec6ecae","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"ed7f1ff87a4afea1bc220d2ff00a7ce8e61f0b53","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"08c7375fa27a8ceee028868e03ffb3a0db919d44","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"b48949ab451eaf1e2c04c272c8a9a96a2b56546f","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"9efb45b45ff6254bfd1f1997a06725cb3fc998a5","versionType":"git"},{"version":"a3376e3ec81c5dd0622cbc187db76d2824d31c1c","status":"affected","lessThan":"4c1294da6aed1f16d47a417dcfe6602833c3c95c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/hdmi/hdmi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"4.9.332","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.298","status":"unaffected","lessThanOrEqual":"4.14.*","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/hdmi/hdmi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a9c1a6991a9b5aa6d0f2cbc9b8c3bf6c4d094dfa"},{"url":"https://git.kernel.org/stable/c/e8f916b84e4b028ecad6c6472eaad543cc7df806"},{"url":"https://git.kernel.org/stable/c/3c43f3ec731c233eb84b66199ee76dbf3ec6ecae"},{"url":"https://git.kernel.org/stable/c/ed7f1ff87a4afea1bc220d2ff00a7ce8e61f0b53"},{"url":"https://git.kernel.org/stable/c/08c7375fa27a8ceee028868e03ffb3a0db919d44"},{"url":"https://git.kernel.org/stable/c/b48949ab451eaf1e2c04c272c8a9a96a2b56546f"},{"url":"https://git.kernel.org/stable/c/9efb45b45ff6254bfd1f1997a06725cb3fc998a5"},{"url":"https://git.kernel.org/stable/c/4c1294da6aed1f16d47a417dcfe6602833c3c95c"}],"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 is only in msm_hdmi_modeset_init during local MSM DRM aggregate bind (msm_drm_bind → MDP4/MDP5 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 the coexisting probe-deferral counter leak plus rebind cycles—the unchecked bridges[num_bridges++] store of hdmi->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 deferral of Qualcomm MSM display components with no credentials; resolving that ambiguity toward higher severity gives Low.\nUI:N - Probe deferral retries and driver bind/rebind tear-downs run entirely in kernel driver-core 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:47.939Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"4.9.332"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"4.14.298"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"4.19.264"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.4.223"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.10.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.15.77"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.0.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}