Bug 2076170 (CVE-2022-1381)

Summary: CVE-2022-1381 vim: global heap buffer overflow in skip_range
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gchamoul, karsten, michal.skrivanek, mperina, sbonazzo, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4763 Doc Type: If docs needed, set a value
Doc Text:
A global heap buffer overflow vulnerability was found in vim's skip_range() function of the src/ex_docmd.c file. This flaw occurs because vim uses an invalid pointer with "V:" in Ex mode. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap buffer overflow that causes an application to crash, leading to a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 10:27:28 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: 2076889    
Bug Blocks: 2076171    

Description Sandipan Roy 2022-04-18 06:22:49 UTC
global heap buffer overflow in skip_range in GitHub repository vim/vim prior to 8.2. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution

https://huntr.dev/bounties/55f9c0e8-c221-48b6-a00e-bdcaebaba4a4
https://github.com/vim/vim/commit/f50808ed135ab973296bca515ae4029b321afe47

Comment 2 TEJ RATHI 2022-04-20 07:38:32 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2076889]

Comment 3 Product Security DevOps Team 2022-04-20 10:27:25 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-1381