Skip to content

CVE-2024-47814 use-after-free when closing buffers in Vim

MediumCVSS 4.7 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Upgrade path

12 packages: 11 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
netapp bootstrap os All versions No fix listed No fix yet
alpine/vim(Alpine v3.21) < 9.1.0936-r0 9.1.0936-r0 Fixed
alpine/vim(Alpine v3.22) < 9.1.0936-r0 9.1.0936-r0 Fixed
alpine/vim(Alpine v3.23) < 9.1.0936-r0 9.1.0936-r0 Fixed
alpine/vim(Alpine v3.24) < 9.1.0936-r0 9.1.0936-r0 Fixed
debian/vim(Debian 12) < 2:9.0.1378-2+deb12u1; = 2:9.0.1378-2 2:9.0.1378-2+deb12u1 Fixed
debian/vim(Debian 13) < 2:9.1.0777-1 2:9.1.0777-1 Fixed
debian/vim(Debian 14) < 2:9.1.0777-1 2:9.1.0777-1 Fixed
Microsoft azure linux < 9.1.0791-1 9.1.0791-1 Fixed
ubuntu/vim(Ubuntu 22.04) < 2:8.2.3995-1ubuntu2.21 2:8.2.3995-1ubuntu2.21 Fixed
ubuntu/vim(Ubuntu 24.04) < 2:9.1.0016-1ubuntu7.5 2:9.1.0016-1ubuntu7.5 Fixed
vim < 9.1.0764; = < v9.1.0764 9.1.0764 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft azure linux < 9.1.0791-1 9.1.0791-1
debian/vim(Debian:12) < 2:9.0.1378-2+deb12u1 2:9.0.1378-2+deb12u1
debian/vim(Debian:12) = 2:9.0.1378-2 No fix listed
debian/vim(Debian:13) < 2:9.1.0777-1 2:9.1.0777-1
debian/vim(Debian:14) < 2:9.1.0777-1 2:9.1.0777-1
ubuntu/vim(Ubuntu:22.04) < 2:8.2.3995-1ubuntu2.21 2:8.2.3995-1ubuntu2.21
vim = < v9.1.0764 No fix listed
alpine/vim(Alpine:v3.21) < 9.1.0936-r0 9.1.0936-r0
alpine/vim(Alpine:v3.22) < 9.1.0936-r0 9.1.0936-r0
alpine/vim(Alpine:v3.23) < 9.1.0936-r0 9.1.0936-r0
alpine/vim(Alpine:v3.24) < 9.1.0936-r0 9.1.0936-r0
ubuntu/vim(Ubuntu:24.04) < 2:9.1.0016-1ubuntu7.5 2:9.1.0016-1ubuntu7.5
vim < 9.1.0764 9.1.0764
netapp bootstrap os All versions No fix listed

References