Description
Vim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters. So this may lead to the tb_off position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. ins_typebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It's not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vim | vim | < 9.1.0697 | — |
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 | 2:9.0.1378-2+deb12u1 | — |
| Debian 11 | vim | 2:8.2.2434-3+deb11u2 | DLA-4097-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | vim | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu 22.04 LTS | vim | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu 20.04 LTS | vim | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | vim | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu Pro 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.5+esm25 | USN-7048-1 |
| Ubuntu Pro 14.04 LTS | vim | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | vim | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | vim | 9.1.0707-r0 | — |
| Alpine v3.23 | vim | 9.1.0707-r0 | — |
| Alpine v3.22 | vim | 9.1.0707-r0 | — |
| Alpine v3.21 | vim | 9.1.0707-r0 | — |
| Alpine v3.20 | vim | 9.1.0707-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | xxd +6 | 2:9.1.785-1.amzn2023.0.1 | ALAS2023-2024-761 |
| Amazon Linux 2 | xxd +6 | 2:9.0.2153-1.amzn2.0.2 | ALAS2-2024-2711 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | vim | 9.1.0697-1 | — |
| Azure Linux 2 (CBL-Mariner) | vim | 9.1.0697-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | vim | 9.1.0698-r0 | — |
Advisories 11
- WID-SEC-2025-1439 Dell Secure Connect Gateway: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Oct 11, 2026
- USN-7048-2 vim vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-7048-1 vim vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- SUSE-SU-2025:20128-1 Security update for vim SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-4097-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2024-1920 vim: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Feb 15, 2026
- SUSE-SU-2025:0722-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0724-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0723-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2024-2711 Moderate: vim security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 19, 2024
- ALAS2023-2024-761 Moderate: vim security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 14, 2024