CVE-2022-50036 Details
Description
In the Linux kernel, the following vulnerability has been resolved: drm/sun4i: dsi: Prevent underflow when computing packet sizes Currently, the packet overhead is subtracted using unsigned arithmetic. With a short sync pulse, this could underflow and wrap around to near the maximal u16 value. Fix this by using signed subtraction. The call to max() will correctly handle any negative numbers that are produced. Apply the same fix to the other timings, even though those subtractions are less likely to underflow.
A vulnerability in the Linux kernel's DRM/Sun4i DSI component could lead to a packet size underflow. This issue arises because packet overhead is subtracted using unsigned arithmetic, which can underflow and wrap around to near the maximum value of an unsigned 16-bit integer when a short sync pulse is present. The vulnerability has been addressed by changing the subtraction to signed arithmetic, allowing for proper handling of negative values. The same adjustment was applied to other timing calculations, despite those subtractions being less likely to cause an underflow.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/82a1356a933d8443139f8886f11b63c974a09a67 | kernel.org | Patch |
| https://git.kernel.org/stable/c/98e28de472ef248352f04f87e29e634ebb0ec240 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fb837f5b83461624e525727a8f4add14b201147e | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-191 | Integer Underflow (Wrap or Wraparound) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.18, < 5.10.138 >= 5.11, < 5.15.63 >= 5.16, < 5.19.4 6.0 rc1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 13, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |