# CVE-2025-22134: vim: When switching to other buffers using the :all command and visual modestill being active, this may cause a heap-buffe...

CVE-2025-22134 is fixed in 21 products on 1 platform, first by vim 2:8.1.2269-1ubuntu5.30, released January 13, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-22134
- Priority: Routine
- CVSS: 5.5 (Medium)
- EPSS: 0.0038
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 13, 2025

## Description

When switching to other buffers using the :all command and visual modestill being active, this may cause a heap-buffer overflow, because Vim doesnot properly end visual mode and therefore may try to access beyond the endof a line in a buffer. In Patch 9.1.1003 Vim will correctly reset thevisual mode before opening other windows and buffers and therefore fix thisbug. In addition it does verify that it won't try to access a position ifthe position is greater than the corresponding buffer line. Impact ismedium since the user must have switched on visual mode when executing the:all ex command. The Vim project would like to thank github user gandalf4afor reporting this issue. The issue has been fixed as of Vim patchv9.1.1003

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | vim Debian 13.5 (trixie) | 2:9.1.1113-1 | [DEBIAN-CVE-2025-22134](https://patchblox.com/security/data/fix/linux/debian-cve-2025-22134.md) | Jan 13, 2025 |
| Linux | vim Debian 14 | 2:9.1.1113-1 | [DEBIAN-CVE-2025-22134](https://patchblox.com/security/data/fix/linux/debian-cve-2025-22134.md) | Jan 13, 2025 |
| Linux | vim Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim opensuse-leap 15.6 | 9.1.1101-150500.20.21.1 | [SUSE-SU-2025:0723-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0723-1.md) | Feb 26, 2025 |
| Linux | vim sles 15.6 | 9.1.1101-150500.20.21.1 | [SUSE-SU-2025:0723-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0723-1.md) | Feb 26, 2025 |
| Linux | vim-athena Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-athena 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-athena-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-athena Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-athena 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-athena-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-athena Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-athena 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-athena-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-athena Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-athena 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-athena-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-common Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-common 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-common-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-common Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-common 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-common-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-common Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-common 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-common-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-common Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-common 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-common-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-common amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-data amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-debuginfo amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-debugsource amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-default-editor amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-enhanced amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-enhanced-debuginfo amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-filesystem amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-gtk Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-gtk 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gtk-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-gtk Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-gtk 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gtk-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-gtk3 Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-gtk3 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gtk3-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-gtk3 Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-gtk3 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gtk3-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-gtk3 Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-gtk3 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-gtk3-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-gtk3 Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-gtk3 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-gtk3-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-gui-common Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-gui-common 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gui-common-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-gui-common Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-gui-common 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gui-common-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-gui-common Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-gui-common 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-gui-common-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-gui-common Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-gui-common 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-gui-common-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-minimal amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-minimal-debuginfo amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | vim-motif Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-motif 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-motif-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-motif Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-motif 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-motif-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-nox Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-nox 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-nox-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-nox Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-nox 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-nox-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-nox Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-nox 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-nox-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-nox Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-nox 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-nox-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-runtime Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-runtime 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-runtime-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-runtime Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-runtime 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-runtime-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-runtime Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-runtime 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-runtime-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-runtime Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-runtime 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-runtime-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | vim-tiny Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [vim-tiny 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-tiny-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | vim-tiny Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [vim-tiny 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-tiny-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | vim-tiny Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [vim-tiny 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-tiny-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | vim-tiny Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [vim-tiny 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-tiny-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | xxd Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.30 | [xxd 2:8.1.2269-1ubuntu5.30](https://patchblox.com/security/data/fix/linux/ubuntu-focal-xxd-2-8.1.2269-1ubuntu5.30.md) | Jan 13, 2025 |
| Linux | xxd Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.22 | [xxd 2:8.2.3995-1ubuntu2.22](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-xxd-2-8.2.3995-1ubuntu2.22.md) | Jan 13, 2025 |
| Linux | xxd Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.6 | [xxd 2:9.1.0016-1ubuntu7.6](https://patchblox.com/security/data/fix/linux/ubuntu-noble-xxd-2-9.1.0016-1ubuntu7.6.md) | Jan 13, 2025 |
| Linux | xxd Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6.3 | [xxd 2:9.1.0496-1ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-xxd-2-9.1.0496-1ubuntu6.3.md) | Jan 16, 2026 |
| Linux | xxd amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |
| Linux | xxd-debuginfo amzn 2023 | 2:9.2.240-1.amzn2023.0.2 | [ALAS2023-2026-1584](https://patchblox.com/security/data/fix/linux/alas2023-2026-1584.md) | Apr 13, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
