Bug 2091676 (CVE-2022-1851)

Summary: CVE-2022-1851 vim: out-of-bounds read in gchar_cursor() in misc1.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
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.5013 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to Illegal memory access and leads to an out-of-bounds read vulnerability in the gchar_cursor function. 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-06-06 11:17:13 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: 2091677    
Bug Blocks: 2091689    

Description Guilherme de Almeida Suckevicz 2022-05-30 17:32:15 UTC
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.

Reference:
https://huntr.dev/bounties/f8af901a-9a46-440d-942a-8f815b59394d

Upstream patch:
https://github.com/vim/vim/commit/78d52883e10d71f23ab72a3d8b9733b00da8c9ad

Comment 1 Guilherme de Almeida Suckevicz 2022-05-30 17:32:30 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2091677]

Comment 2 Product Security DevOps Team 2022-06-06 11:17:11 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-1851