Skip to content
OpenAdvisories
Low · 3.9 CVE-2024-47814 EUVD-2024-42697

use-after-free when closing buffers in Vim

Published Oct 7, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
vim vim < v9.1.0764 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vim 2:9.1.0777-1 —
Debian 13 vim 2:9.1.0777-1 —
Debian 12 vim 2:9.0.1378-2+deb12u1 —
Debian 11 vim 2:8.2.2434-3+deb11u2 DLA-4097-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS vim 2:9.1.0016-1ubuntu7.5 USN-7131-1
Ubuntu 22.04 LTS vim 2:8.2.3995-1ubuntu2.21 USN-7131-1
Ubuntu 20.04 LTS vim 2:8.1.2269-1ubuntu5.29 USN-7131-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS vim 2:8.0.1453-1ubuntu1.13+esm11 USN-7131-1
Ubuntu Pro 16.04 LTS vim 2:7.4.1689-3ubuntu1.5+esm26 USN-7131-1
Ubuntu Pro 14.04 LTS vim 2:7.4.052-1ubuntu3.1+esm20 USN-7131-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
SLES 15 SP5 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
SLES 12 SP5 vim 9.1.0836-17.38.1 SUSE-SU-2024:4409-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.0 vim 9.1.1101-1.1 SUSE-SU-2025:20128-1
SLE Micro 5.5 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
openSUSE Leap 15.5 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 vim 9.1.0836-150500.20.15.1 SUSE-SU-2024:4330-1
ReleasePackageFixed inAdvisory
Alpine v3.24 vim 9.1.0936-r0 —
Alpine v3.23 vim 9.1.0936-r0 —
Alpine v3.22 vim 9.1.0936-r0 —
Alpine v3.21 vim 9.1.0936-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xxd +6 2:9.1.785-1.amzn2023.0.1 ALAS2023-2024-761

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 vim 9.1.0791-1 —
Azure Linux 2 (CBL-Mariner) vim 9.1.0791-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling vim 9.1.0766-r0 —

Advisories 7

References