Bug 2092890 (CVE-2022-1942)

Summary: CVE-2022-1942 vim: out of bounds write in vim_regsub_both()
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
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   
Fixed In Version: vim 8.2.5043 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds write vulnerability was found in Vim's vim_regsub_both() function in the src/regexp.c file. The flaw can open a command-line window from a substitute expression when a text or buffer is locked. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering an out-of-bounds write that causes an application to crash, possibly reading and modifying some amount of memory contents.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-07 13:19:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2092891    
Bug Blocks: 2092892    

Description Marian Rehak 2022-06-02 13:47:58 UTC
Heap-based Buffer Overflow in function vim_regsub_both at regexp.c:1954.



Comment 1 Marian Rehak 2022-06-02 13:48:13 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2092891]

Comment 3 Product Security DevOps Team 2022-06-07 13:19:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):