Description
Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vim | vim | < 9.1.0648 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | vim | 2:9.1.0698-1 | — |
| Debian 13 | vim | 2:9.1.0698-1 | — |
| Debian 12 | vim | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLES 15 SP6 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLES 15 SP5 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLES 15 SP4 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLES 15 SP3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
Show 15 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | vim | 9.1.1406-17.48.1 | SUSE-SU-2025:02227-1 |
| SLES for SAP 15 SP5 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLES for SAP 15 SP4 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLES for SAP 15 SP3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE Micro 5.5 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLE Micro 5.4 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE Micro 5.3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE Micro 5.2 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE Micro 5.1 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE HPC 15 SP5 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
| SLE HPC 15 SP4 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SLE HPC 15 SP3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SUSE Manager Server 4.3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SUSE Manager Proxy 4.3 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
| SUSE Enterprise Storage 7.1 | vim | 9.1.1406-150000.5.75.1 | SUSE-SU-2025:02228-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | vim | 9.1.1406-150500.20.27.1 | SUSE-SU-2025:02226-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | vim | 9.1.0652-r0 | — |
| Alpine v3.23 | vim | 9.1.0652-r0 | — |
| Alpine v3.22 | vim | 9.1.0652-r0 | — |
| Alpine v3.21 | vim | 9.1.0652-r0 | — |
| Alpine v3.20 | vim | 9.1.0652-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | vim | 9.0.2190-4 | — |
| Azure Linux 2 (CBL-Mariner) | vim | 9.0.2121-4 | — |
Advisories 4
- SUSE-SU-2025:02226-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:02228-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:02227-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1746 vim: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Nov 4, 2025