CVE-2024-43802

Publication date 26 August 2024

Last updated 30 May 2025


Ubuntu priority

Cvss 3 Severity Score

4.5 · Medium

Score breakdown

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.

Status

Package Ubuntu Release Status
vim 24.10 oracular
Fixed 2:9.1.0496-1ubuntu6
24.04 LTS noble
Fixed 2:9.1.0016-1ubuntu7.3
22.04 LTS jammy
Fixed 2:8.2.3995-1ubuntu2.19
20.04 LTS focal
Fixed 2:8.1.2269-1ubuntu5.25
18.04 LTS bionic
Fixed 2:8.0.1453-1ubuntu1.13+esm10
16.04 LTS xenial
Fixed 2:7.4.1689-3ubuntu1.5+esm25
14.04 LTS trusty
Fixed 2:7.4.052-1ubuntu3.1+esm19

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Severity score breakdown

Parameter Value
Base score 4.5 · Medium
Attack vector Local
Attack complexity High
Privileges required None
User interaction Required
Scope Unchanged
Confidentiality Low
Integrity impact Low
Availability impact Low
Vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L