Description
An integer overflow at a u_read_undo memory allocation site would occur for vim before patch 8.0.0377, if it does not properly validate values for tree length when reading a corrupted undo file, which may lead to resultant buffer overflows.
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 | neovim | 0.1.7-4 | — |
| Debian 14 | vim | 2:8.0.0197-3 | — |
| Debian 13 | neovim | 0.1.7-4 | — |
| Debian 13 | vim | 2:8.0.0197-3 | — |
| Debian 12 | neovim | 0.1.7-4 | — |
| Debian 12 | vim | 2:8.0.0197-3 | — |
| Debian 7 | vim | 2:7.3.547-7+deb7u3 | DLA-850-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | vim | 2:8.0.1453-1ubuntu1.3 | USN-4309-1 |
| Ubuntu 16.04 LTS | vim | 2:7.4.1689-3ubuntu1.4 | USN-4309-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | vim | 2:7.4.052-1ubuntu3.1+esm1 | USN-4309-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP3 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES 12 SP2 | vim | 7.4.326-16.1 | SUSE-SU-2022:4619-1, SUSE-SU-2017:1712-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 12 SP4 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SLES for SAP 12 SP2 | vim | 7.4.326-16.1 | SUSE-SU-2017:1712-1 |
| SUSE OpenStack Cloud Crowbar 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
| SUSE OpenStack Cloud 9 | vim | 9.0.0814-17.9.1 | SUSE-SU-2022:4619-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | neovim | 0.5.1-1.1 | openSUSE-SU-2024:11081-1 |
| openSUSE Tumbleweed | vim | 8.2.3408-1.2 | openSUSE-SU-2024:11497-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | neovim | 0.2.0-r0 | — |
| Alpine v3.24 | vim | 8.0.1521-r0 | — |
| Alpine v3.23 | neovim | 0.2.0-r0 | — |
| Alpine v3.23 | vim | 8.0.1521-r0 | — |
| Alpine v3.22 | neovim | 0.2.0-r0 | — |
| Alpine v3.22 | vim | 8.0.1521-r0 | — |
| Alpine v3.21 | neovim | 0.2.0-r0 | — |
| Alpine v3.21 | vim | 8.0.1521-r0 | — |
| Alpine v3.20 | neovim | 0.2.0-r0 | — |
| Alpine v3.20 | vim | 8.0.1521-r0 | — |
Show 14 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | neovim | 0.2.0-r0 | — |
| Alpine v3.19 | vim | 8.0.1521-r0 | — |
| Alpine v3.18 | neovim | 0.2.0-r0 | — |
| Alpine v3.18 | vim | 8.0.1521-r0 | — |
| Alpine v3.17 | neovim | 0.2.0-r0 | — |
| Alpine v3.17 | vim | 8.0.1521-r0 | — |
| Alpine v3.16 | neovim | 0.2.0-r0 | — |
| Alpine v3.16 | vim | 8.0.1521-r0 | — |
| Alpine v3.15 | neovim | 0.2.0-r0 | — |
| Alpine v3.15 | vim | 8.0.1521-r0 | — |
| Alpine v3.14 | neovim | 0.2.0-r0 | — |
| Alpine v3.14 | vim | 8.0.1521-r0 | — |
| Alpine v3.13 | neovim | 0.2.0-r0 | — |
| Alpine v3.13 | vim | 8.0.1521-r0 | — |
| Alpine v3.12 | neovim | 0.2.0-r0 | — |
| Alpine v3.12 | vim | 8.0.1521-r0 | — |
| Alpine v3.11 | neovim | 0.2.0-r0 | — |
| Alpine v3.11 | vim | 8.0.1521-r0 | — |
| Alpine v3.10 | neovim | 0.2.0-r0 | — |
| Alpine v3.10 | vim | 8.0.1521-r0 | — |
| Alpine v3.9 | neovim | 0.2.0-r0 | — |
| Alpine v3.9 | vim | 8.0.1521-r0 | — |
| Alpine v3.8 | neovim | 0.2.0-r0 | — |
| Alpine v3.8 | vim | 8.0.1521-r0 | — |
| Alpine v3.7 | neovim | 0.2.0-r0 | — |
| Alpine v3.6 | neovim | 0.2.0-r0 | — |
Advisories 7
- USN-4309-1 vim vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-850-1 vim - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11081-1 neovim-0.5.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11497-1 gvim-8.2.3408-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4619-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:1712-1 Security update for vim SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-2407 vim: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Dec 26, 2022
References
- GLSA-201706-26 vendor-advisory
- 1037949 vdb-entry
- https://github.com/vim/vim/commit/3eb1637b1bba19519885dd6d377bd5596e91d22c
- 96451 vdb-entry
- https://groups.google.com/forum/#%21topic/vim_dev/LAgsTcdSfNA
- https://groups.google.com/forum/#%21topic/vim_dev/QPZc0CY9j3Y
- USN-4309-1 vendor-advisory