Bug 2151566 (CVE-2022-4293) - CVE-2022-4293 vim: floating point exception in num_divide() in src/eval.c
Summary: CVE-2022-4293 vim: floating point exception in num_divide() in src/eval.c
Keywords:
Status: NEW
Alias: CVE-2022-4293
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2151567 2156268 2156269
Blocks: 2151568
TreeView+ depends on / blocked
 
Reported: 2022-12-07 14:05 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:29 UTC (History)
2 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


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