Buffer overflow in Vim - CVE-2022-3296

 

Buffer overflow in Vim - CVE-2022-3296

Published: September 26, 2022


Vulnerability identifier: #VU67658
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-3296
CWE-ID: CWE-119
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 when processing files within the ex_finally() function in ex_eval.c. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger memory corruption 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 Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
openSUSE Leap Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Oracle Solaris
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Slackware Linux
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
openEuler
Fedora
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
EMC Cloud Tiering Appliance
Dell EMC Storage Monitoring and Reporting (SMR)
EMC ViPR SRM
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Dell Secure Connect Gateway
Dell EMC VxRail Appliance
vim-filesystem
vim-debugsource
vim-X11
vim-debuginfo
vim-enhanced
vim-minimal
vim-common
vim
vim-gvim
gvim
vim-data-common
vim-data
gvim-debuginfo
vim-small
vim-small-debuginfo
app-editors/vim-core
app-editors/vim
app-editors/gvim

How to mitigate CVE-2022-3296

Install updates from vendor's website.

Vim - update to 9.0.0577
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 - update to 7.0.411
vim-filesystem - update to 8.2-60
vim-debugsource - update to 8.2-60
vim-X11 - update to 8.2-60
vim-debuginfo - update to 8.2-60
vim-enhanced - update to 8.2-60
vim-minimal - update to 8.2-60
vim-common - update to 8.2-60
vim - update to 8.2-60
vim-gvim - update to 9.0.0594
vim - update to 9.0.0594
vim - addressed in versions 9.0.720-1.fc35, 9.0.720-1.fc36, 9.0.720-1.fc37, 9.0.803-1.fc37, 9.0.828-1.fc37
vim - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
vim-debuginfo - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
vim-debugsource - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
gvim - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
vim-data-common - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
vim-data - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
gvim-debuginfo - addressed in versions 9.0.0814-17.9.1, 9.0.0814-150000.5.28.1
vim-small - update to 9.0.0814-150000.5.28.1
vim-small-debuginfo - update to 9.0.0814-150000.5.28.1
app-editors/vim-core - update to 9.0.1157
app-editors/vim - update to 9.0.1157
app-editors/gvim - update to 9.0.1157
vim - update to 9.0.1314-1
EMC Cloud Tiering Appliance - update to 13.1.0.2.29

External References

Related Security Bulletins