Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-55157 EUVD-2025-24191

Vim heap use-after-free vulnerability when processing recursive tuple data types

Published Aug 11, 2025 · Updated Aug 12, 2025 · Assigned by GitHub_M

Description

Vim is an open source, command line text editor. In versions from 9.1.1231 to before 9.1.1400, When processing nested tuples in Vim script, an error during evaluation can trigger a use-after-free in Vim’s internal tuple reference management. Specifically, the tuple_unref() function may access already freed memory due to improper lifetime handling, leading to memory corruption. The exploit requires direct user interaction, as the script must be explicitly executed within Vim. This issue has been patched in version 9.1.1400.

Affected products

VendorProductAffectedFixed
vim vim >= 9.1.1231, < 9.1.1400 —

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
SLES 15 SP7 vim 9.1.1629-150500.20.33.1 SUSE-SU-2025:03300-1
SLES 15 SP6 vim 9.1.1629-150500.20.33.1 SUSE-SU-2025:03300-1
SLES 12 SP5 vim 9.1.1629-17.51.1 SUSE-SU-2025:03299-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.1 vim 9.1.1629-slfo.1.1_1.1 SUSE-SU-2025:20857-1
SLE Micro 6.0 vim 9.1.1629-1.1 SUSE-SU-2025:20696-1
SLE Micro 5.5 vim 9.1.1629-150500.20.33.1 SUSE-SU-2025:03300-1
SLE Micro 5.4 vim 9.1.1629-150000.5.78.1 SUSE-SU-2025:03240-1
SLE Micro 5.3 vim 9.1.1629-150000.5.78.1 SUSE-SU-2025:03240-1
SLE Micro 5.2 vim 9.1.1629-150000.5.78.1 SUSE-SU-2025:03240-1
SLE Micro 5.1 vim 9.1.1629-150000.5.78.1 SUSE-SU-2025:03240-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 vim 9.1.1629-150500.20.33.1 SUSE-SU-2025:03300-1

Advisories 7

References