Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-55158 EUVD-2025-24192

Vim double-free vulnerability during Vim9 script import operations

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.1406, when processing nested tuples during Vim9 script import operations, an error during evaluation can trigger a double-free in Vim’s internal typed value (typval_T) management. Specifically, the clear_tv() function may attempt to free memory that has already been deallocated, due to improper lifetime handling in the handle_import / ex_import code paths. The vulnerability can only be triggered if a user explicitly opens and executes a specially crafted Vim script. This issue has been patched in version 9.1.1406.

Affected products

VendorProductAffectedFixed
vim vim >= 9.1.1231, < 9.1.1406 —

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