Out-of-bounds read in Vim - CVE-2022-1629

 

Out-of-bounds read in Vim - CVE-2022-1629

Published: May 20, 2022


Vulnerability identifier: #VU63490
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-1629
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the system.

The vulnerability exists due to a boundary condition in find_next_quote() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger out-of-bounds read error, perform a denial of service attack, modify memory, and execute arbitrary code.


Affected software

Vim
IBM Qradar SIEM
Amazon Linux AMI
Gentoo Linux
Anolis OS
Red Hat Enterprise Linux for ARM 64
Oracle Linux
Red Hat Enterprise Linux for x86_64
Ubuntu
openEuler
Fedora
macOS
Isolation Segment
VMware Tanzu Application Service for VMs
Red Hat Advanced Cluster Management for Kubernetes
Red Hat Advanced Cluster Security for Kubernetes
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
App Connect Enterprise Certified Container
OpenShift Logging
Red Hat OpenStack
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
vim-athena (Ubuntu package)
vim-gtk (Ubuntu package)
vim-gnome (Ubuntu package)
vim-nox (Ubuntu package)
vim-tiny (Ubuntu package)
vim (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-minimal
vim-filesystem
vim-enhanced
vim-common
vim-X11
vim-debugsource
vim-debuginfo
vim
vim (Red Hat package)
app-editors/gvim
app-editors/vim
app-editors/vim-core
vim-motif (Ubuntu package)
cflinuxfs3
IBM Cloud Pak for Watson AIOps
VMware Tanzu Operations Manager
OpenShift Virtualization

How to mitigate CVE-2022-1629

Install updates from vendor's website.

Vim - update to 8.2.4925
Migration Toolkit for Containers - update to 1.7.3
Red Hat Advanced Cluster Management for Kubernetes - update to 2.5.1
Red Hat Advanced Cluster Security for Kubernetes - update to 3.71
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 4.6.0
App Connect Enterprise Certified Container - update to 5.0.1
OpenShift Logging - addressed in versions 5.2.13, 5.3.10, 5.4.3
vim-athena (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5, 2:9.0.0242-1ubuntu1.3
vim-gtk (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5
vim-gnome (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.12
vim-nox (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5, 2:9.0.0242-1ubuntu1.3
vim-tiny (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5, 2:9.0.0242-1ubuntu1.3
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:7.4.16893ubuntu1.5+esm8, 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5, 2:9.0.0242-1ubuntu1.3
cflinuxfs3 - update to 0.360.0
VMware Tanzu Operations Manager - update to 3.0.8
IBM Cloud Pak for Watson AIOps - update to 4.1.1
Red Hat OpenShift Container Platform - update to 4.11.0
OpenShift Virtualization - update to 4.11.0
IBM Qradar SIEM - addressed in versions 7.4.3 Fix Pack 8, 7.5.0 Update Pack 4
vim-gtk3 (Ubuntu package) - addressed in versions 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, 2:8.2.3995-1ubuntu2.5, 2:9.0.0242-1ubuntu1.3
vim-minimal - update to 8.0.1763-19.0.1
vim-filesystem - update to 8.0.1763-19.0.1
vim-enhanced - update to 8.0.1763-19.0.1
vim-common - update to 8.0.1763-19.0.1
vim-X11 - update to 8.0.1763-19.0.1
vim-debugsource - update to 8.2-27
vim-X11 - update to 8.2-27
vim-debuginfo - update to 8.2-27
vim-enhanced - update to 8.2-27
vim-minimal - update to 8.2-27
vim-filesystem - update to 8.2-27
vim - update to 8.2-27
vim-common - update to 8.2-27
vim (Red Hat package) - update to 8.2.2637-16.el9_0.2
vim - update to 8.2.4927-1.fc34
vim - addressed in versions 8.2.5172-1.1, 9.0.1160-1.1
app-editors/gvim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim - addressed in versions 9.0.0060, 9.0.1157
app-editors/vim-core - addressed in versions 9.0.0060, 9.0.1157
vim-motif (Ubuntu package) - update to 2:9.0.0242-1ubuntu1.3
macOS - update to 13.0 22A380
Red Hat OpenStack - update to 16.2.z

External References

Related Security Bulletins