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).

Exploitability

The vulnerability is disputed, with the original discoverer noting that the overflow cannot actually happen in practice. The presence of multiple security controls in the Linux kernel, including size checks in vfs_write() and copy_from_user(), effectively prevents exploitation (NVD).

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

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Arch Linux

Fixed

rolling

linux: 6.2-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99287MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • kernel-64k-core
NoYesNov 10, 2026
CVE-2026-99288MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesNov 10, 2026
CVE-2026-99286MEDIUM5.6
  • Linux Kernel logoLinux Kernel
  • bpftool
NoYesNov 10, 2026
CVE-2026-99285MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux
NoYesNov 10, 2026
CVE-2026-0004HIGHN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek64k-modules-extra-netfilter
NoYesNov 09, 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

Additional Wiz resources

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