Bug 2028212 (CVE-2021-4019)

Summary: CVE-2021-4019 vim: heap-based buffer overflow in find_help_tags() in help.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, fjansen, gchamoul, gghezzo, gparvin, jburrell, jnakfour, jramanat, jwong, karsten, kaycoth, pahickey, psegedy, stcannon, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.3669 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. A possible heap-based buffer overflow vulnerability allows an attacker to input a specially crafted file, leading to a crash or code execution. The highest threat from this vulnerability is system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-01 22:01:53 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: 2028213, 2028429, 2028430, 2028431, 2029171, 2029172    
Bug Blocks: 2028214    

Description Guilherme de Almeida Suckevicz 2021-12-01 17:55:06 UTC
Vim is vulnerable to heap-based buffer overflow.

Reference:
https://huntr.dev/bounties/d8798584-a6c9-4619-b18f-001b9a6fca92

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

Comment 1 Guilherme de Almeida Suckevicz 2021-12-01 17:55:21 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2028213]

Comment 5 errata-xmlrpc 2022-02-01 21:00:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 6 Product Security DevOps Team 2022-02-01 22:01:51 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-2021-4019