Bug 2373685 (CVE-2022-50036) - CVE-2022-50036 kernel: drm/sun4i: dsi: Prevent underflow when computing packet sizes
Summary: CVE-2022-50036 kernel: drm/sun4i: dsi: Prevent underflow when computing packe...
Keywords:
Status: NEW
Alias: CVE-2022-50036
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:13 UTC by OSIDB Bzimport
Modified: 2025-06-18 17:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:13:45 UTC
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.

Comment 1 Avinash Hanwate 2025-06-18 17:20:24 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061840-CVE-2022-50036-7fdc@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.