Bug 2151558 (CVE-2022-4292) - CVE-2022-4292 vim: use-after-free in did_set_spelllang() in src/spell.c
Summary: CVE-2022-4292 vim: use-after-free in did_set_spelllang() in src/spell.c
Status: NEW
Alias: CVE-2022-4292
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nobody
QA Contact:
Depends On: 2151559 2156271 2156272
Blocks: 2151568
TreeView+ depends on / blocked
Reported: 2022-12-07 13:56 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:32 UTC (History)
2 users (show)

Fixed In Version: vim 9.0.0882
Doc Type: If docs needed, set a value
Doc Text:
A heap use-after-free flaw was found in Vim's did_set_spelllang() function of the spell.c file. This issue occurs because vim uses freed memory after SpellFileMissing autocmd uses bwipe. This could allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free issue that causes an application to crash, possibly executing code and corrupting memory.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2022-12-07 13:56:14 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.0882.


Upstream patch:

Comment 1 Guilherme de Almeida Suckevicz 2022-12-07 13:56:28 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2151559]

Note You need to log in before you can comment on or make changes to this bug.