Bug 2091687 (CVE-2022-1927)

Summary: CVE-2022-1927 vim: buffer over-read in utf_ptr2char() in mbyte.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: fhrdina, gchamoul, karsten, michal.skrivanek, mperina, sbonazzo, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.5037 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 a buffer over-read vulnerability in the utf_ptr2char 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-09-01 01:55:49 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: 2091688, 2093849, 2093850, 2095107, 2095108    
Bug Blocks: 2091689    

Description Guilherme de Almeida Suckevicz 2022-05-30 17:40:11 UTC
Buffer Over-read in GitHub repository vim/vim prior to 8.2.

Reference:
https://huntr.dev/bounties/945107ef-0b27-41c7-a03c-db99def0e777

Upstream patch:
https://github.com/vim/vim/commit/4d97a565ae8be0d4debba04ebd2ac3e75a0c8010

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

Affects: fedora-all [bug 2091688]

Comment 5 errata-xmlrpc 2022-08-03 12:53:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 6 errata-xmlrpc 2022-08-09 10:27:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 7 Product Security DevOps Team 2022-09-01 01:55:47 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-1927