CVE-2025-22134
Fixed in a distro release EPSS <1%CVSS 4.2
When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003
Products: vim
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.21 | vim | 9.1.1003-r0 |
| Alpine 3.22 | vim | 9.1.1003-r0 |
| Alpine 3.23 | vim | 9.1.1003-r0 |
| Amazon Linux 2023 | vim-common | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | vim-data | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | vim-default-editor | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | vim-enhanced | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | vim-filesystem | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | vim-minimal | 2:9.2.240-1.amzn2023.0.2 |
| Amazon Linux 2023 | xxd | 2:9.2.240-1.amzn2023.0.2 |
| Debian 12 | vim | no fix |
| Debian 13 | vim | 2:9.1.1113-1 |
| Debian 14 | vim | 2:9.1.1113-1 |
| SUSE Linux Enterprise Micro 5.1 | vim | 9.1.1101-150000.5.69.1 |
| SUSE Linux Enterprise Micro 5.2 | vim | 9.1.1101-150000.5.69.1 |
| SUSE Linux Enterprise Micro 5.3 | vim | 9.1.1101-150000.5.69.1 |
| SUSE Linux Enterprise Micro 5.4 | vim | 9.1.1101-150000.5.69.1 |
| SUSE Linux Enterprise Micro 5.5 | vim | 9.1.1101-150500.20.21.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | vim | 9.1.1101-150500.20.21.1 |
| SUSE Linux Enterprise Module for Desktop Applications 15 SP6 | vim | 9.1.1101-150500.20.21.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | vim | 9.1.1101-17.41.1 |
| SUSE Linux Micro 6.0 | vim | 9.1.1101-1.1 |
| Ubuntu 20.04 LTS | vim | 2:8.1.2269-1ubuntu5.30 |
| Ubuntu 22.04 LTS | vim | 2:8.2.3995-1ubuntu2.22 |
| Ubuntu 24.04 LTS | vim | 2:9.1.0016-1ubuntu7.6 |
| Ubuntu Pro 14.04 LTS | vim | no fix |
| Ubuntu Pro 16.04 LTS | vim | no fix |
| Ubuntu Pro 18.04 LTS | vim | no fix |
| openSUSE Leap 15.6 | vim | 9.1.1101-150500.20.21.1 |