Bug 2119864 (CVE-2022-2889) - CVE-2022-2889 vim: use-after-free in find_var_also_in_script() in evalvars.c
Summary: CVE-2022-2889 vim: use-after-free in find_var_also_in_script() in evalvars.c
Keywords:
Status: NEW
Alias: CVE-2022-2889
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2119866 2121748
Blocks: 2119865
TreeView+ depends on / blocked
 
Reported: 2022-08-19 17:21 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-08-26 16:29 UTC (History)
4 users (show)

Fixed In Version: vim 9.0.0225
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in Vim in the find_var_also_in_script function in the evalvars.c file. This issue occurs because an already freed memory is used when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file into triggering the use-after-free, causing the application to crash, possibly executing code and corrupting memory.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2022-08-19 17:21:42 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.0225.

Reference:
https://huntr.dev/bounties/d1ac9817-825d-49ce-b514-1d5b12b6bdaa

Upstream patch:
https://github.com/vim/vim/commit/91c7cbfe31bbef57d5fcf7d76989fc159f73ef15

Comment 1 Guilherme de Almeida Suckevicz 2022-08-19 17:22:53 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2119866]


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