Bug 2085393 (CVE-2022-1674)

Summary: CVE-2022-1674 vim: NULL pointer dereference in vim_regexec_string() of regexp.c
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fhrdina, gchamoul, karsten, michal.skrivanek, mperina, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4938 Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in vim's vim_regexec_string() function in regexp.c file. The issue occurs when the function tries to match the buffer with an invalid pattern. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a NULL pointer dereference that causes an application to crash, leading to a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2087006, 2087008    
Bug Blocks: 2085396    

Description TEJ RATHI 2022-05-13 08:58:43 UTC
NULL Pointer Dereference in function vim_regexec_string at regexp.c in vim/vim prior to 8.2.4938. NULL Pointer Dereference in function vim_regexec_string() at regexp.c allows attackers to cause a denial of service (application crash) via a crafted input.

https://huntr.dev/bounties/a74ba4a4-7a39-4a22-bde3-d2f8ee07b385
https://github.com/vim/vim/commit/a59f2dfd0cf9ee1a584d3de5b7c2d47648e79060

Comment 1 TEJ RATHI 2022-05-17 06:09:24 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2087006]