6.1medium
An issue was discovered in the Linux kernel before 5.19.
- Severity
- 6.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
An issue was discovered in the Linux kernel before 5.19. In pxa3xx_gcu_write in drivers/video/fbdev/pxa3xx-gcu.c, the count parameter has a type conflict of size_t versus int, causing an integer overflow and bypassing the size check. After that, because it is used as the third argument to copy_from_user(), a heap overflow may occur. NOTE: the original discoverer disputes that the overflow can actually happen.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| linux linux_kernel | before 5.19, 5.19 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
Classification
What each source says
CVE List
An issue was discovered in the Linux kernel before 5.19. In pxa3xx_gcu_write in drivers/video/fbdev/pxa3xx-gcu.c, the count parameter has a type conflict of size_t versus int, causing an integer overflow and bypassing the size check. After that, because it is used as the third argument to copy_from_user(), a heap overflow may occur. NOTE: the original discoverer disputes that the overflow can actually happen.
NVD (es)
Se ha detectado un problema en el kernel de Linux versiones anteriores a 5.19. En la función pxa3xx_gcu_write en el archivo drivers/video/fbdev/pxa3xx-gcu.c, el parámetro count presenta un conflicto de tipo size_t frente a int, causando un desbordamiento de enteros y omite la comprobación de tamaño. Además, al ser usado como tercer argumento de copy_from_user(), puede producirse un desbordamiento de pila
References
| https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.19 | release-notes, vendor-advisory | |
| https://github.com/torvalds/linux/commit/a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 | patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/10/msg00000.html | mailing-list, third-party-advisory | |
| https://www.debian.org/security/2022/dsa-5257 | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html | mailing-list, third-party-advisory | |
| https://lore.kernel.org/all/YylaC1wHHyLw22D3%40kadam/T/ | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39842 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2022-39842 changed 2026-06-17 | Public domain |