Bug 2106775 (CVE-2022-2345)

Summary: CVE-2022-2345 vim: use-after-free in skipwhite() in charset.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, jburrell, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.0047 Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in Vim in the skipwhite function in the charset.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, and cause the application to crash, possibly executing code and corrupting 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: 2106871, 2107305    
Bug Blocks: 2106038    

Description Guilherme de Almeida Suckevicz 2022-07-13 14:03:27 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.0046.

Reference:
https://huntr.dev/bounties/1eed7009-db6d-487b-bc41-8f2fd260483f

Upstream patch:
https://github.com/vim/vim/commit/32acf1f1a72ebb9d8942b9c9d80023bf1bb668ea