Bug 2049175 (CVE-2022-0392)

Summary: CVE-2022-0392 vim: Heap-based buffer overflow in getexmodeline() 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: caswilli, dhalasz, fhrdina, fjansen, gchamoul, jburrell, 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 illegal memory access with bracketed paste in Ex 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 16:32:12 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: 2049176, 2049184, 2049403, 2049404    
Bug Blocks: 2048522    

Description Guilherme de Almeida Suckevicz 2022-02-01 17:09:19 UTC
Heap-based buffer overflow in GitHub repository vim/vim prior to 8.2.

Reference:
https://huntr.dev/bounties/d00a2acd-1935-4195-9d5b-4115ef6b3126

Upstream patch:
https://github.com/vim/vim/commit/806d037671e133bd28a7864248763f643967973a

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

Affects: fedora-all [bug 2049176]

Comment 3 juneau 2022-02-01 17:41:57 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.

Comment 10 errata-xmlrpc 2022-03-15 10:21:27 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 11 Product Security DevOps Team 2022-03-15 16:32:09 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-0392