The vendor explicitly identifies these products as affected by this CVE.
- vim-X11 as a component of Red Hat Enterprise Linux 10
- vim-common as a component of Red Hat Enterprise Linux 10
- vim-data as a component of Red Hat Enterprise Linux 10
- vim-enhanced as a component of Red Hat Enterprise Linux 10
- vim-filesystem as a component of Red Hat Enterprise Linux 10
- vim-minimal as a component of Red Hat Enterprise Linux 10
- vim.src as a component of Red Hat Enterprise Linux 10
- xxd as a component of Red Hat Enterprise Linux 10
- vim-X11 as a component of Red Hat Enterprise Linux 6
- vim-common as a component of Red Hat Enterprise Linux 6
- vim-enhanced as a component of Red Hat Enterprise Linux 6
- vim-filesystem as a component of Red Hat Enterprise Linux 6
- Summary
- A heap buffer overflow in Vim allows a local attacker to cause a denial of service or potentially execute arbitrary code. The flaw is triggered by processing a specially crafted spell file, where the set_sofo() function fails to reset internal data between sections, leading to an out-of-bounds write.
- Remediation
- If spell checking is unused, disable it with set nospell in ~/.vimrc and do not set spelllang. If spell is required, load only trusted .spl files from Vim’s spell directories and do not place untrusted spell files on runtimepath. Additionally, consider disabling modelines (set nomodeline in ~/.vimrc) to prevent untrusted text files from automatically overriding these settings when opened.
