Bug 2123714 (CVE-2022-2982) - CVE-2022-2982 vim: use after free in qf_fill_buffer() at src/quickfix.c
Summary: CVE-2022-2982 vim: use after free in qf_fill_buffer() at src/quickfix.c
Keywords:
Status: NEW
Alias: CVE-2022-2982
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2123715 2124182
Blocks: 2122661
TreeView+ depends on / blocked
 
Reported: 2022-09-02 11:59 UTC by TEJ RATHI
Modified: 2023-07-07 08:32 UTC (History)
3 users (show)

Fixed In Version: vim 9.0.0260
Doc Type: If docs needed, set a value
Doc Text:
A heap use-after-free vulnerability was found in vim's qf_fill_buffer() function of the src/quickfix.c file. The issue occurs because vim uses freed memory when recursively using 'quickfixtextfunc.' This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap use-after-free that causes an application to crash, possibly executing code and corrupting memory.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2022-09-02 11:59:18 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.0260.

https://github.com/vim/vim/commit/d6c67629ed05aae436164eec474832daf8ba7420
https://huntr.dev/bounties/53f53d9a-ba8a-4985-b7ba-23efbe6833be

Comment 1 TEJ RATHI 2022-09-02 11:59:35 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2123715]


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