Bug 2049180 (CVE-2022-0393)

Summary: CVE-2022-0393 vim: out-of-bounds read in delete_buff_tail() in getchar.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: caswilli, dhalasz, fhrdina, fjansen, gchamoul, jburrell, jwong, karsten, kaycoth, micjohns, sthirugn, vkrizan, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4282 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to a crash when recording and using Select mode and leads to an out-of-bounds read. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
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: 2049181    
Bug Blocks: 2048522    

Description Guilherme de Almeida Suckevicz 2022-02-01 17:14:28 UTC
Out-of-bounds read in GitHub repository vim/vim prior to 8.2.

Reference:
https://huntr.dev/bounties/ecc8f488-01a0-477f-848f-e30b8e524bba

Upstream patch:
https://github.com/vim/vim/commit/a4bc2dd7cccf5a4a9f78b58b6f35a45d17164323

Comment 1 Guilherme de Almeida Suckevicz 2022-02-01 17:14:44 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2049181]

Comment 3 juneau 2022-02-01 17:41:50 UTC
Marking Services affected/wontreport.
Have already reported and filed trackers for CVE-2022-0408 and -0413 attached to same task.
Remediation is the same for all, and additional trackers add no value.