Bug 2050053 (CVE-2022-0361)

Summary: CVE-2022-0361 vim: Illegal memory access when copying lines in visual mode leads to heap buffer overflow
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fhrdina, gchamoul, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4286 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to illegal memory access when copying lines 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-03-15 17:01:24 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: 2050054, 2050059, 2050060, 2050061    
Bug Blocks: 2050055    

Description Dhananjay Arunesh 2022-02-03 06:21:11 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.

References:
https://huntr.dev/bounties/a055618c-0311-409c-a78a-99477121965b
https://github.com/vim/vim/commit/dc5490e2cbc8c16022a23b449b48c1bd0083f366

Comment 1 Dhananjay Arunesh 2022-02-03 06:21:50 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2050054]

Comment 4 errata-xmlrpc 2022-03-15 10:21:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0894 https://access.redhat.com/errata/RHSA-2022:0894

Comment 5 Product Security DevOps Team 2022-03-15 17:01:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-0361