Division by zero in Vim - CVE-2023-0512

 

Division by zero in Vim - CVE-2023-0512

Published: February 16, 2023


Vulnerability identifier: #VU72341
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-0512
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a divide by zero in the adjust_skipcol() function in move.c. A remote attacker can trick the victim to open a specially crafted file and crash the editor.


Affected software

Vim
Amazon Linux AMI
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
macOS
Oracle Solaris
SUSE Linux Enterprise Server 12 SP2 BCL
SUSE Linux Enterprise Server 12 SP4 LTSS
SUSE Linux Enterprise Server 12 SP4 ESPOS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Desktop Applications Module
Basesystem Module
openSUSE Leap
Fedora
ObjectScale
EMC Cloud Tiering Appliance
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
vim
gvim-debuginfo
vim-data
vim-data-common
gvim
vim-debugsource
vim-debuginfo
vim-small
vim-small-debuginfo

How to mitigate CVE-2023-0512

Install updates from vendor's website.

Vim - update to 9.0.1247
ObjectScale - update to 1.3.0
macOS - addressed in versions 11.7.5 20G1225, 12.6.4 21G526, 13.3 22E252
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
vim - addressed in versions 9.0.1314-1, 9.0.1367-1.73
gvim-debuginfo - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-data - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-data-common - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
gvim - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-debugsource - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-debuginfo - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-small - update to 9.0.1386-150000.5.37.1
vim-small-debuginfo - update to 9.0.1386-150000.5.37.1
vim - update to 9.0.1407-1.fc36
EMC Cloud Tiering Appliance - update to 13.2.0.2.22

External References

Related Security Bulletins