Bug 2193207 (CVE-2022-2874)

Summary: CVE-2022-2874 vim: NULL pointer dereference in generate_loadvar() in vim9compile.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jburrell, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.0224 Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference vulnerability was found in Vim in the generate_loadvar function in the vim9compile.c file. This flaw allows an attacker who can trick a user into processing a specially crafted file to trigger the NULL pointer dereference, causing the application to crash.
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: 2193210    
Bug Blocks: 2193204    

Description Guilherme de Almeida Suckevicz 2023-05-04 17:12:07 UTC
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.

Reference:
https://huntr.dev/bounties/95f97dfe-247d-475d-9740-b7adc71f4c79

Upstream patch:
https://github.com/vim/vim/commit/4875d6ab068f09df88d24d81de40dcd8d56e243d