5.5medium
drm/sun4i: dsi: Prevent underflow when computing packet sizes
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 133add5b5ad42b7bb5fcd59d681aef6475d08600 before a1e7908f78f5a7f53f8cd83c7dcdfec974c95f26, from 133add5b5ad42b7bb5fcd59d681aef6475d08600 before 98e28de472ef248352f04f87e29e634ebb0ec240, from 133add5b5ad42b7bb5fcd59d681aef6475d08600 before fb837f5b83461624e525727a8f4add14b201147e, from 133add5b5ad42b7bb5fcd59d681aef6475d08600 before 82a1356a933d8443139f8886f11b63c974a09a67, 4.18 Not affected: before 4.18, from 5.10.138 up to 5.10.*, from 5.15.63 up to 5.15.*, from 5.19.4 up to 5.19.*, from 6.0 up to * | CVE List |
| linux linux_kernel | from 4.18 before 5.10.138, from 5.11 before 5.15.63, from 5.16 before 5.19.4, 6.0 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/sun4i: dsi: Prevenir el subdesbordamiento al calcular el tamaño de los paquetes. Actualmente, la sobrecarga de paquetes se resta mediante aritmética sin signo. Con un pulso de sincronización corto, esto podría desbordarse y volver a la normalidad hasta cerca del valor máximo u16. Se soluciona mediante la resta con signo. La llamada a max() gestionará correctamente cualquier número negativo generado. Aplique la misma corrección a las demás temporizaciones, aunque estas restas tienen menos probabilidad de desbordarse.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50036 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50036 changed 2026-06-17 | Public domain |