Vulnerability · Published Sep 5, 2022 · Assigned by mitre
CVE-2022-39842
Medium 6.1
In plain English
A medium-severity security flaw in the linux package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 5.19.6-1 | DEBIAN-CVE-2022-39842 |
| Debian:13 | linux | 5.19.6-1 | DEBIAN-CVE-2022-39842 |
| Debian:14 | linux | 5.19.6-1 | DEBIAN-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux | 5.15.0-57.63 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-57.63 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1027.31 | USN-5792-2 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1027.31 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1030.37 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1030.37 | USN-5792-2 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1030.37.1 | USN-5792-2 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1030.37.1 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1026.33 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1026.33 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1024.29 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1024.29 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1012.16 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1012.16 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1022.25 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1022.25 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1023.28 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1025.30 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1025.30 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-57.63 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-57.63 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1015.15 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1026.32 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1026.32 | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1022.24 | USN-5792-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1022.24 | UBUNTU-CVE-2022-39842 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2022-39842 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2022-39842 |
Affected products (as reported)
References
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.19
- https://github.com/torvalds/linux/commit/a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7
- [debian-lts-announce] 20221002 [SECURITY] [DLA 3131-1] linux security update mailing-list
- DSA-5257 vendor-advisory
- [debian-lts-announce] 20221101 [SECURITY] [DLA 3173-1] linux-5.10 security update mailing-list
- https://lore.kernel.org/all/YylaC1wHHyLw22D3%40kadam/T/