Bug 2049556 (CVE-2022-0319)

Summary: CVE-2022-0319 vim: heap-based out-of-bounds read
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: caswilli, dhalasz, fhrdina, fjansen, gchamoul, jburrell, jnakfour, jwong, karsten, kaycoth, micjohns, saroy, sthirugn, tkasparek, 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 buffer shifting when exchanging windows in Visual mode and leads to a heap buffer overflow. 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: 2022-02-08 07:56:21 UTC 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: 2049559, 2049583, 2049584, 2049586    
Bug Blocks: 2048522    

Description Marian Rehak 2022-02-02 11:49:55 UTC
A heap-based OOB read of size 4 occurs when a user tries to open a vim session file specified below. This happens regardless of any command line options that could be specified to restrict vim, such -Z and -m.

Reference:

https://huntr.dev/bounties/ba622fd2-e6ef-4ad9-95b4-17f87b68755b/

Comment 1 Marian Rehak 2022-02-02 11:52:09 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2049559]

Comment 4 juneau 2022-02-03 12:49:30 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.