REDHAT-BUG-2492968: Medium severity vim Vim vulnerability
Vim is an open source, command line text editor. Prior to 9.2.0698, the single-byte branch of spellsoundfoldsofo() in src/spell.c translates a word through a spell file's SOFO (sound-folding) byte map into a caller-owned result buffer. Its copy loop advances the output index ri with no upper bound and terminates only on the input NUL, writing one byte per input byte into the MAXWLEN-element stack buffer the caller provides. A word longer than MAXWLEN, passed to soundfold() (or reached via sound-based spell suggestion) while a SOFO-based spell language is active, therefore writes past the end of that buffer. This is a stack out-of-bounds write that corrupts the call frame and crashes the editor. This vulnerability is fixed in 9.2.0698.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
vimto a version that resolves this vulnerability.Fixed in 9.2.0698
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2492968?
The severity of REDHAT-BUG-2492968 is medium, rated at 4.
What does REDHAT-BUG-2492968 affect?
REDHAT-BUG-2492968 affects the Vim text editor prior to version 9.2.0698.
How do I fix REDHAT-BUG-2492968?
To fix REDHAT-BUG-2492968, you should upgrade Vim to version 9.2.0698 or later.
What is the vulnerability described in REDHAT-BUG-2492968?
REDHAT-BUG-2492968 pertains to a buffer overflow vulnerability in the spell_soundfold_sofo() function within Vim.
Is REDHAT-BUG-2492968 a common vulnerability?
While the specific impact of REDHAT-BUG-2492968 may vary, it's essential for users to address it due to its potential medium risk.