Stack-based buffer overflow in Vim - CVE-2024-22667

 

Stack-based buffer overflow in Vim - CVE-2024-22667

Published: March 7, 2024


Vulnerability identifier: #VU87189
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-2024-22667
CWE-ID: CWE-121
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 did_set_langmap() function in map.c. A remote attacker can trick the victim to open a specially crafted file, trigger a stack-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
Dell ECS
Oracle Solaris
Amazon Linux AMI
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Micro
Ubuntu
Desktop Applications Module
Basesystem Module
openSUSE Leap
Anolis OS
Dell Data Protection Central
PowerProtect DP Series Appliance (IDPA)
PowerStore X
Storage Resource Manager
SmartFabric OS10
EMC Cloud Tiering Appliance
vim (Ubuntu package)
vim-doc
vim-X11
vim-common
vim-enhanced
vim-minimal
vim-data
vim-filesystem
vim
gvim
vim-data-common
gvim-debuginfo
vim-debuginfo
vim-debugsource
vim-small-debuginfo
vim-small
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Dell Secure Connect Gateway
Dell EMC Storage Monitoring and Reporting (SMR)

How to mitigate CVE-2024-22667

Install updates from vendor's website.

Vim - update to 9.0.2142
Oracle Solaris - update to 11.4 SRU 71
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.22, 2:8.2.3995-1ubuntu2.16, 2:9.0.1672-1ubuntu2.3
PowerStore X - update to 3.2.1.4-2386214
Dell ECS - update to 3.8.1.4
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - addressed in versions 4.8.4, 5.0.1
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.10.0.3
Storage Resource Manager - update to 4.10.0.3
Dell Secure Connect Gateway - update to 5.24.00.14
vim-doc - update to 9.0.2092-3
vim-X11 - update to 9.0.2092-3
vim-common - update to 9.0.2092-3
vim-enhanced - update to 9.0.2092-3
vim-minimal - update to 9.0.2092-3
vim-data - update to 9.0.2092-3
vim-filesystem - update to 9.0.2092-3
vim - update to 9.0.2153-1
gvim - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim-data-common - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim-data - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
gvim-debuginfo - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim-debuginfo - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim-debugsource - addressed in versions 9.1.0111-17.29.1, 9.1.0111-150500.20.9.1
vim-small-debuginfo - update to 9.1.0111-150500.20.9.1
vim-small - update to 9.1.0111-150500.20.9.1
SmartFabric OS10 - update to 10.6.0.3
EMC Cloud Tiering Appliance - update to 13.2.0.2.29

External References

Related Security Bulletins