Bug 2151566 (CVE-2022-4293)

Summary: CVE-2022-4293 vim: floating point exception in num_divide() in src/eval.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.0804 Doc Type: If docs needed, set a value
Doc Text:
A floating point exception flaw was found in Vim's num_divide() function of the eval.c file. This issue occurs when dividing the largest negative number by -1. This could allow an attacker to trick a user into opening a specially crafted file, triggering an application to crash and 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: 2151567, 2156268, 2156269    
Bug Blocks: 2151568    

Description Guilherme de Almeida Suckevicz 2022-12-07 14:05:43 UTC
Floating Point Comparison with Incorrect Operator in GitHub repository vim/vim prior to 9.0.0804.

Reference:
https://huntr.dev/bounties/385a835f-6e33-4d00-acce-ac99f3939143

Upstream patch:
https://github.com/vim/vim/commit/cdef1cefa2a440911c727558562f83ed9b00e16b

Comment 1 Guilherme de Almeida Suckevicz 2022-12-07 14:05:59 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2151567]