CVE Vulnerabilities

CVE-2026-25749

Heap-based Buffer Overflow

Published: Feb 06, 2026 | Modified: Jun 09, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.3 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

Vim is an open source, command line text editor. Prior to version 9.1.2132, a heap buffer overflow vulnerability exists in Vims tag file resolution logic when processing the helpfile option. The vulnerability is located in the get_tagfname() function in src/tag.c. When processing help file tags, Vim copies the user-controlled helpfile option value into a fixed-size heap buffer of MAXPATHL + 1 bytes (typically 4097 bytes) using an unsafe STRCPY() operation without any bounds checking. This issue has been patched in version 9.1.2132.

Weakness

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Affected Software

NameVendorStart VersionEnd Version
NeovimNeovim*0.11.6 (including)
VimVim*9.1.2132 (excluding)
Red Hat Enterprise Linux 10RedHatvim-2:9.1.083-6.el10_1.1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatvim-2:9.1.083-5.el10_0.2*
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRedHatvim-2:7.4.629-8.el7_9.1*
Red Hat Enterprise Linux 8RedHatvim-2:8.0.1763-22.el8_10*
Red Hat Enterprise Linux 8RedHatvim-2:8.0.1763-22.el8_10*
Red Hat Enterprise Linux 8.2 Advanced Update SupportRedHatvim-2:8.0.1763-13.el8_2.1*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatvim-2:8.0.1763-15.el8_4.1*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatvim-2:8.0.1763-15.el8_4.1*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatvim-2:8.0.1763-19.el8_6.5*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatvim-2:8.0.1763-19.el8_6.5*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatvim-2:8.0.1763-19.el8_6.5*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatvim-2:8.0.1763-20.el8_8.1*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatvim-2:8.0.1763-20.el8_8.1*
Red Hat Enterprise Linux 9RedHatvim-2:8.2.2637-23.el9_7.1*
Red Hat Enterprise Linux 9RedHatvim-2:8.2.2637-23.el9_7.1*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatvim-2:8.2.2637-16.el9_0.4*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatvim-2:8.2.2637-20.el9_2.1*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatvim-2:8.2.2637-20.el9_4.2*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatvim-2:8.2.2637-22.el9_6.2*
Red Hat OpenShift Container Platform 4.12RedHatrhcos-412.86.202604281506-0*
Red Hat OpenShift Container Platform 4.13RedHatrhcos-413.92.202604080111-0*
Red Hat OpenShift Container Platform 4.14RedHatrhcos-414.92.202605060243-0*
Red Hat OpenShift Container Platform 4.15RedHatrhcos-415.92.202605060220-0*
Red Hat OpenShift Container Platform 4.16RedHatrhcos-416.94.202604211449-0*
Red Hat OpenShift Container Platform 4.17RedHatrhcos-417.94.202605112123-0*
Red Hat OpenShift Container Platform 4.18RedHatrhcos-418.94.202604140044-0*
Red Hat OpenShift Container Platform 4.19RedHatrhcos-4.19.9.6.202604080618-0*
Red Hat AI Inference Server 3.2RedHatrhaiis/model-opt-cuda-rhel9:1780681984*
Red Hat AI Inference Server 3.2RedHatrhaiis/vllm-cuda-rhel9:1775740563*
Red Hat AI Inference Server 3.3RedHatrhaiis/model-opt-cuda-rhel9:1778244559*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-rocm-rhel9:1778244531*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-spyre-rhel9:1778244546*
Red Hat Insights proxy 1.5RedHatinsights-proxy/insights-proxy-container-rhel9:1776868961*
Red Hat Update Infrastructure 5RedHatrhui5/cds-rhel9:1776868774*
Red Hat Update Infrastructure 5RedHatrhui5/haproxy-rhel9:1776868744*
Red Hat Update Infrastructure 5RedHatrhui5/installer-rhel9:1776868772*
Red Hat Update Infrastructure 5RedHatrhui5/rhua-rhel9:1776868842*
VimUbuntuesm-infra-legacy/trusty*
VimUbuntuesm-infra-legacy/xenial*
VimUbuntuesm-infra/bionic*
VimUbuntuesm-infra/focal*
VimUbuntuesm-infra/xenial*
VimUbuntujammy*
VimUbuntunoble*
VimUbuntuquesting*
VimUbuntuupstream*

Potential Mitigations

  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
  • D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.
  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as “rebasing” (for Windows) and “prelinking” (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.
  • For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

References