Bug 2092890 (CVE-2022-1942) - CVE-2022-1942 vim: out of bounds write in vim_regsub_both()
Summary: CVE-2022-1942 vim: out of bounds write in vim_regsub_both()
Alias: CVE-2022-1942
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2092891
Blocks: 2092892
TreeView+ depends on / blocked
Reported: 2022-06-02 13:47 UTC by Marian Rehak
Modified: 2022-06-07 17:22 UTC (History)
6 users (show)

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.
Clone Of:
Last Closed: 2022-06-07 13:19:38 UTC

Attachments (Terms of Use)

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):


Note You need to log in before you can comment on or make changes to this bug.