Heap-based buffer overflow in Vim - CVE-2022-2522

 

Heap-based buffer overflow in Vim - CVE-2022-2522

Published: August 18, 2022


Vulnerability identifier: #VU66637
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-2522
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error within the ins_compl_infercase_gettext() function in insexpand.c. A remote attacker can trick the victim to open a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Vim
Amazon Linux AMI
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
openSUSE Leap Micro
SUSE Enterprise Storage
SUSE Linux Enterprise Storage
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
openEuler
VMware Tanzu Application Service for VMs
Isolation Segment
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Dell Secure Connect Gateway
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
EMC Cloud Tiering Appliance
vim-gtk (Ubuntu package)
vim-athena (Ubuntu package)
vim (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-nox (Ubuntu package)
vim-tiny (Ubuntu package)
xxd (Ubuntu package)
vim-runtime (Ubuntu package)
vim-debugsource
vim-enhanced
vim-minimal
vim-common
vim-X11
vim-debuginfo
vim
vim-filesystem
vim-small
vim-small-debuginfo
vim-data-common
gvim
gvim-debuginfo
vim-data
app-editors/gvim
app-editors/vim
app-editors/vim-core
VMware Tanzu Operations Manager
Dell EMC Storage Monitoring and Reporting (SMR)
EMC ViPR SRM
Dell EMC VxRail Appliance

How to mitigate CVE-2022-2522

Install updates from vendor's website.

Vim - update to 9.0.0060
vim-gtk (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim-athena (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim-gtk3 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim-nox (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim-tiny (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
xxd (Ubuntu package) - addressed in versions Ubuntu Pro, 2:8.1.2269-1ubuntu5.17, 2:8.2.3995-1ubuntu2.11
vim-runtime (Ubuntu package) - update to Ubuntu Pro
VMware Tanzu Operations Manager - update to 3.0.15
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.9.0.0
EMC ViPR SRM - update to 4.9.0.0
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
Dell Secure Connect Gateway - update to 5.14.00.16
Dell EMC VxRail Appliance - addressed in versions 7.0.401, 8.0.000
vim-debugsource - update to 8.2-49
vim-enhanced - update to 8.2-49
vim-minimal - update to 8.2-49
vim-common - update to 8.2-49
vim-X11 - update to 8.2-49
vim-debuginfo - update to 8.2-49
vim - update to 8.2-49
vim-filesystem - update to 8.2-49
vim-debuginfo - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
vim-debugsource - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
vim-small - update to 9.0.0313-150000.5.25.1
vim-small-debuginfo - update to 9.0.0313-150000.5.25.1
vim-data-common - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
gvim - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
gvim-debuginfo - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
vim - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
vim-data - addressed in versions 9.0.0313-150000.5.25.1, 9.0.0814-17.9.1
app-editors/gvim - update to 9.0.1157
app-editors/vim - update to 9.0.1157
app-editors/vim-core - update to 9.0.1157
vim - addressed in versions 9.0.1160-1.1, 9.0.1403-1.76
EMC Cloud Tiering Appliance - update to 13.1.0.2.29

External References

Related Security Bulletins