Advisory

UBUNTU-CVE-2025-22134

Also known as: CVE-2025-22134

Summary

The record has no summary.

Details

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

Severity

Medium Basis: CVSS v3 score 4.2, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

Dates

Published
2025-01-13 21:15 UTC
Modified
2026-08-26 01:56 UTC

Affected packages and fixes

vim

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2:8.1.2269-1ubuntu5.30 (ecosystem)

Fixed versions

2:8.1.2269-1ubuntu5.30

Fix

  • Fixed version 2:8.1.2269-1ubuntu5.30
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

vim

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2:8.2.3995-1ubuntu2.22 (ecosystem)

Fixed versions

2:8.2.3995-1ubuntu2.22

Fix

  • Fixed version 2:8.2.3995-1ubuntu2.22
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

vim

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2:9.1.0016-1ubuntu7.6 (ecosystem)

Fixed versions

2:9.1.0016-1ubuntu7.6

Fix

  • Fixed version 2:9.1.0016-1ubuntu7.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences