REDHAT-BUG-2492980: Medium severity vim Vim vulnerability

Published Jun 25, 2026
·
Updated

Vim is an open source, command line text editor. Prior to 9.2.0653, the treecountwords() function in src/spellfile.c fills in the word-count fields of a spell-file word trie by walking it iteratively with a depth counter. The counter is bounded only by the trie structure itself; it is never checked against the size of the fixed MAXWLEN-element stack arrays it indexes (arridx[], curi[], wordcount[]). A crafted .spl/.sug file pair, loaded when the user invokes spell suggestion, can drive the descent arbitrarily deep, so the function writes past the end of those arrays. This is a stack out-of-bounds write that corrupts the call frame and crashes the editor. This vulnerability is fixed in 9.2.0653.

Affected Software

1 affected component
vim Vim<9.2.0653

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in 9.2.0653

Event History

Jun 25, 2026
Data Sourced
via Red Hat·04:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2492980?

The severity of REDHAT-BUG-2492980 is medium with a score of 4.

2

How do I fix REDHAT-BUG-2492980?

To fix REDHAT-BUG-2492980, update Vim to version 9.2.0653 or later.

3

What issue does REDHAT-BUG-2492980 address in Vim?

REDHAT-BUG-2492980 addresses a vulnerability in the tree_count_words() function that can lead to improper handling of word-count fields in spell files.

4

What version of Vim is affected by REDHAT-BUG-2492980?

Versions of Vim prior to 9.2.0653 are affected by REDHAT-BUG-2492980.

5

Is REDHAT-BUG-2492980 related to security vulnerabilities in Vim?

Yes, REDHAT-BUG-2492980 is a security-related vulnerability that affects the Vim text editor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203