{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50036","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-06-18T10:57:27.396Z","datePublished":"2025-06-18T11:01:37.844Z","dateUpdated":"2026-05-11T19:11:36.324Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:11:36.324Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/sun4i: dsi: Prevent underflow when computing packet sizes\n\nCurrently, the packet overhead is subtracted using unsigned arithmetic.\nWith a short sync pulse, this could underflow and wrap around to near\nthe maximal u16 value. Fix this by using signed subtraction. The call to\nmax() will correctly handle any negative numbers that are produced.\n\nApply the same fix to the other timings, even though those subtractions\nare less likely to underflow."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c"],"versions":[{"version":"133add5b5ad42b7bb5fcd59d681aef6475d08600","lessThan":"a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26","status":"affected","versionType":"git"},{"version":"133add5b5ad42b7bb5fcd59d681aef6475d08600","lessThan":"98e28de472ef248352f04f87e29e634ebb0ec240","status":"affected","versionType":"git"},{"version":"133add5b5ad42b7bb5fcd59d681aef6475d08600","lessThan":"fb837f5b83461624e525727a8f4add14b201147e","status":"affected","versionType":"git"},{"version":"133add5b5ad42b7bb5fcd59d681aef6475d08600","lessThan":"82a1356a933d8443139f8886f11b63c974a09a67","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c"],"versions":[{"version":"4.18","status":"affected"},{"version":"0","lessThan":"4.18","status":"unaffected","versionType":"semver"},{"version":"5.10.138","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.63","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.4","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.10.138"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26"},{"url":"https://git.kernel.org/stable/c/98e28de472ef248352f04f87e29e634ebb0ec240"},{"url":"https://git.kernel.org/stable/c/fb837f5b83461624e525727a8f4add14b201147e"},{"url":"https://git.kernel.org/stable/c/82a1356a933d8443139f8886f11b63c974a09a67"}],"title":"drm/sun4i: dsi: Prevent underflow when computing packet sizes","x_generator":{"engine":"bippy-1.2.0"}}}}