Bug 2046479 (CVE-2022-0359)

Summary: CVE-2022-0359 vim: Heap-based buffer overflow in init_ccline() in ex_getln.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, dhalasz, fhrdina, fjansen, gchamoul, jburrell, jwong, karsten, kaycoth, micjohns, sthirugn, tkasparek, vkrizan, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4227 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to Illegal memory access with large 'tabstop' in Ex mode, which can lead 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 16:01:57 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: 2046480, 2046529, 2046607, 2046608, 2046609    
Bug Blocks: 2046438    

Description Guilherme de Almeida Suckevicz 2022-01-26 19:03:32 UTC
Heap-based Buffer Overflow in Conda vim prior to 8.2.

Reference:
https://huntr.dev/bounties/a3192d90-4f82-4a67-b7a6-37046cc88def

Upstream patch:
https://github.com/vim/vim/commit/85b6747abc15a7a81086db31289cf1b8b17e6cb1

Comment 1 Guilherme de Almeida Suckevicz 2022-01-26 19:03:46 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2046480]

Comment 2 juneau 2022-01-26 21:29:09 UTC
Marking services affected/delegated for Yet Another Vim Flaw that is low/moderate in severity and unlikely to occur.

Comment 7 errata-xmlrpc 2022-03-15 10:21:10 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 8 Product Security DevOps Team 2022-03-15 16:01:54 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-0359