Skip to content
OpenAdvisories
Medium · 4.5 CVE-2024-45306 EUVD-2024-41429

heap-buffer-overflow in Vim

Published Sep 2, 2024 · Updated Oct 4, 2024 · Assigned by GitHub_M

Description

Vim is an open source, command line text editor. Patch v9.1.0038 optimized how the cursor position is calculated and removed a loop, that verified that the cursor position always points inside a line and does not become invalid by pointing beyond the end of
a line. Back then we assumed this loop is unnecessary. However, this change made it possible that the cursor position stays invalid and points beyond the end of a line, which would eventually cause a heap-buffer-overflow when trying to access the line pointer at
the specified cursor position. It's not quite clear yet, what can lead to this situation that the cursor points to an invalid position. That's why patch v9.1.0707 does not include a test case. The only observed impact has been a program crash. This issue has been addressed in with the patch v9.1.0707. All users are advised to upgrade.

Affected products

VendorProductAffectedFixed
vim vim >= 9.1.0038, < 9.1.0707 —

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.0709-1 —
Debian 13 vim 2:9.1.0709-1 —
ReleasePackageFixed inAdvisory
SLES 15 SP6 vim 9.1.1101-150500.20.21.1 SUSE-SU-2025:0723-1
SLES 12 SP5 vim 9.1.1101-17.41.1 SUSE-SU-2025:0722-1
Show 6 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.1101-150500.20.21.1 SUSE-SU-2025:0723-1
SLE Micro 5.4 vim 9.1.1101-150000.5.69.1 SUSE-SU-2025:0724-1
SLE Micro 5.3 vim 9.1.1101-150000.5.69.1 SUSE-SU-2025:0724-1
SLE Micro 5.2 vim 9.1.1101-150000.5.69.1 SUSE-SU-2025:0724-1
SLE Micro 5.1 vim 9.1.1101-150000.5.69.1 SUSE-SU-2025:0724-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 vim 9.1.1101-150500.20.21.1 SUSE-SU-2025:0723-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling vim 9.1.0718-r0 —

Advisories 6

References