Use-after-free in Vim - CVE-2023-5535
Published: October 24, 2023
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a use-after-free error within the editing_arg_idx() function. A remote attacker can trick the victim to open a specially crafted file, trigger a use-after-free error and execute arbitrary code on the system.
Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.
Affected software
Amazon Linux AMI
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
Ubuntu
Slackware Linux
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 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
Basesystem Module
Desktop Applications Module
openSUSE Leap
openEuler
Anolis OS
Fedora
VMware Tanzu Application Service for VMs
Isolation Segment
IBM Cloud Transformation Advisor
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Redis for Pivotal Platform
vim-gtk (Ubuntu package)
xxd (Ubuntu package)
vim-tiny (Ubuntu package)
vim (Ubuntu package)
vim-nox (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-athena (Ubuntu package)
vim-X11
vim-minimal
vim
vim-enhanced
vim-debuginfo
vim-debugsource
vim-filesystem
vim-common
vim-data
vim-doc
vim-gvim
gvim-debuginfo
gvim
vim-data-common
vim-small
vim-small-debuginfo
ObjectScale
PowerStore X
EMC ECS
PowerStore T
Storage Resource Manager
VMware Tanzu Operations Manager
Dell EMC Storage Monitoring and Reporting (SMR)
Dell EMC NetWorker vProxy
How to mitigate CVE-2023-5535
vim-gtk (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13
xxd (Ubuntu package) - addressed in versions Ubuntu Pro, 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-tiny (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-nox (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-gtk3 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-athena (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
ObjectScale - update to 1.4.0
VMware Tanzu Operations Manager - addressed in versions 2.10.66, 3.0.19
PowerStore X - update to 3.2.1.4-2386214
EMC ECS - update to 3.8.1.1
IBM Cloud Transformation Advisor - update to 3.8.2
PowerStore T - update to 4.0.0.2-2365061
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.10.0.3
Storage Resource Manager - update to 4.10.0.3
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
vim-X11 - update to 9.0-18
vim-minimal - update to 9.0-18
vim - update to 9.0-18
vim-enhanced - update to 9.0-18
vim-debuginfo - update to 9.0-18
vim-debugsource - update to 9.0-18
vim-filesystem - update to 9.0-18
vim-common - update to 9.0-18
vim - addressed in versions 9.0.1712-1.84, 9.0.2010-1
vim-filesystem - update to 9.0.2026-1
vim-data - update to 9.0.2026-1
vim-doc - update to 9.0.2026-1
vim-common - update to 9.0.2026-1
vim-minimal - update to 9.0.2026-1
vim-enhanced - update to 9.0.2026-1
vim-X11 - update to 9.0.2026-1
vim - addressed in versions 9.0.2048-1.fc37, 9.0.2048-1.fc38, 9.0.2048-1.fc39
vim - update to 9.0.2063
vim-gvim - update to 9.0.2063
vim-debugsource - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim-debuginfo - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
gvim-debuginfo - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
gvim - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim-data - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim-data-common - addressed in versions 9.0.2103-17.26.1, 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim-small - addressed in versions 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
vim-small-debuginfo - addressed in versions 9.0.2103-150000.5.57.1, 9.0.2103-150500.20.6.1
Dell EMC NetWorker vProxy - addressed in versions 19.9.0.4, 19.10
External References
- https://github.com/vim/vim/commit/41e6f7d6ba67b61d911f9b1d76325cd79224753d
- https://huntr.dev/bounties/2c2d85a7-1171-4014-bf7f-a2451745861f
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VDDWD25AZIHBAA44HQT75OWLQ5UMDKU3/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VGTVLUV7UCXXCZAIQIUCLG6JXAVYT3HE/
Related Security Bulletins
- Multiple vulnerabilities in Vim
- Fedora 39 update for vim
- Fedora 38 update for vim
- Fedora 37 update for vim
- Slackware Linux update for vim
- Ubuntu update for vim
- SUSE update for vim
- SUSE update for vim
- SUSE update for vim
- VMware Tanzu products update for Vim
- Amazon Linux AMI update for vim
- Dell EMC NetWorker vProxy update for third-party components
- Multiple vulnerabilities in IBM Cloud Transformation Advisor
- openEuler update for vim
- Multiple vulnerabilities in Dell Storage Resource Manager (SRM) and Dell Storage Monitoring and Reporting (SMR)
- Multiple vulnerabilities in Dell ECS
- Multiple vulnerabilities in Dell ObjectScale
- Multiple vulnerabilities in IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
- Multiple vulnerabilities in Dell PowerStore X
- Multiple vulnerabilities in Dell PowerStore T Family
- Amazon Linux AMI update for vim
- Anolis OS update for vim