Bug 2049556 (CVE-2022-0319) - CVE-2022-0319 vim: heap-based out-of-bounds read
Summary: CVE-2022-0319 vim: heap-based out-of-bounds read
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-0319
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2049559 2049583 2049584 2049586
Blocks: 2048522
TreeView+ depends on / blocked
 
Reported: 2022-02-02 11:49 UTC by Marian Rehak
Modified: 2022-05-17 09:51 UTC (History)
18 users (show)

Fixed In Version: vim 8.2.4282
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to buffer shifting when exchanging windows in Visual mode and leads to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
Clone Of:
Environment:
Last Closed: 2022-02-08 07:56:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2022-02-02 11:49:55 UTC
A heap-based OOB read of size 4 occurs when a user tries to open a vim session file specified below. This happens regardless of any command line options that could be specified to restrict vim, such -Z and -m.

Reference:

https://huntr.dev/bounties/ba622fd2-e6ef-4ad9-95b4-17f87b68755b/

Comment 1 Marian Rehak 2022-02-02 11:52:09 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2049559]

Comment 4 juneau 2022-02-03 12:49:30 UTC
Marking Services affected/wontreport.
Have already reported and filed trackers for CVE-2022-0408 and -0413 attached to same task.
Remediation is the same for all, and additional trackers add no value.


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