CVE-2022-39842
Linux Kernel vulnerability analysis and mitigation

Overview

An integer overflow vulnerability (CVE-2022-39842) was discovered in the Linux kernel before version 5.19. The issue exists in the pxa3xx_gcu_write function in drivers/video/fbdev/pxa3xx-gcu.c, where a type conflict between size_t and int for the count parameter could potentially cause an integer overflow and bypass size checks (NVD).

Technical details

The vulnerability stems from a type mismatch in the pxa3xx_gcu_write function where the count parameter of type size_t is assigned to a variable 'words' of type int. This could theoretically lead to an integer overflow when used as the third argument to copy_from_user(). The vulnerability has a CVSS v3.1 Base Score of 6.1 MEDIUM (Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H) (NVD).

Impact

While initially thought to be exploitable, the vulnerability's actual impact is limited. The count parameter is capped at MAX_RW_COUNT in vfs_write(), preventing negative values. Additionally, copy_from_user() includes checks that prevent exploitation through the check_copy_size() function (Kernel Mailing List).

Mitigation and workarounds

The issue was fixed by changing the type of the 'words' variable from int to size_t, ensuring proper type consistency. The fix was included in Linux kernel version 5.19. Additionally, the vulnerable driver is not enabled in some distributions' official kernel configurations, such as Debian (Debian Security Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-internal
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management