Bug 2097768 (CVE-2022-2042)

Summary: CVE-2022-2042 vim: use after free in skipwhite may lead to crash
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fhrdina, gchamoul, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2097769, 2099231    
Bug Blocks: 2097770    

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]