Bug 2097768 (CVE-2022-2042) - CVE-2022-2042 vim: use after free in skipwhite may lead to crash
Summary: CVE-2022-2042 vim: use after free in skipwhite may lead to crash
Keywords:
Status: NEW
Alias: CVE-2022-2042
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: 2097769 2099231
Blocks: 2097770
TreeView+ depends on / blocked
 
Reported: 2022-06-16 13:46 UTC by Marian Rehak
Modified: 2023-07-07 08:34 UTC (History)
4 users (show)

Fixed In Version: vim 8.2.5072
Doc Type: If docs needed, set a value
Doc Text:
A heap use-after-free vulnerability was found in Vim's skipwhite() function of the src/charset.c file. This flaw occurs because of an uninitialized attribute value and freed memory in the spell command. 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 and corrupt memory.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2022-06-16 13:46:52 UTC
A use after free vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.

Reference:

https://huntr.dev/bounties/8628b4cd-4055-4059-aed4-64f7fdc10eba
https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835

Comment 1 Marian Rehak 2022-06-16 13:47:07 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2097769]


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