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
Status: NEW
Alias: CVE-2022-2042
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2097769 2099231
Blocks: 2097770
TreeView+ depends on / blocked
Reported: 2022-06-16 13:46 UTC by Marian Rehak
Modified: 2022-11-08 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:
Last Closed:

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.



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.