Skip to content
OpenAdvisories
Medium · 4.2 CVE-2025-24014 EUVD-2025-3594

segmentation fault in win_line() in Vim < 9.1.1043

Published Jan 20, 2025 · Updated Mar 14, 2025 · Assigned by GitHub_M

Description

Vim is an open source, command line text editor. A segmentation fault was found in Vim before 9.1.1043. In silent Ex mode (-s -e), Vim typically doesn't show a screen and just operates silently in batch mode. However, it is still possible to trigger the function that handles the scrolling of a gui version of Vim by feeding some binary characters to Vim. The function that handles the scrolling however may be triggering a redraw, which will access the ScreenLines pointer, even so this variable hasn't been allocated (since there is no screen). This vulnerability is fixed in 9.1.1043.

Affected products

VendorProductAffectedFixed
vim vim < 9.1.1043 —

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.1113-1 —
Debian 13 vim 2:9.1.1113-1 —
Debian 12 vim No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 vim 2:9.1.0967-1ubuntu4 —
Ubuntu 24.04 LTS vim 2:9.1.0016-1ubuntu7.7 USN-7261-2
Ubuntu 22.04 LTS vim 2:8.2.3995-1ubuntu2.23 USN-7261-1
Ubuntu 20.04 LTS vim 2:8.1.2269-1ubuntu5.31 USN-7261-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS vim 2:8.0.1453-1ubuntu1.13+esm13 USN-7815-1
Ubuntu Pro 16.04 LTS vim 2:7.4.1689-3ubuntu1.5+esm28 USN-7815-1
Ubuntu Pro 14.04 LTS vim 2:7.4.052-1ubuntu3.1+esm22 USN-7815-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
ReleasePackageFixed inAdvisory
Alpine v3.24 vim 9.1.1105-r0 —
Alpine v3.23 vim 9.1.1105-r0 —
Alpine v3.22 vim 9.1.1105-r0 —
Alpine v3.21 vim 9.1.1105-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xxd +6 2:9.1.1202-1.amzn2023.0.1 ALAS2023-2025-932
Amazon Linux 2 xxd +6 2:9.0.2153-1.amzn2.0.3 ALAS2-2025-2753

Azure Linux

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

Advisories 11

References