Bug 2101293 (CVE-2022-2175)

Summary: CVE-2022-2175 vim: buffer over-read in put_on_cmdline() at ex_getln.c
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.5148 Doc Type: If docs needed, set a value
Doc Text:
A heap buffer over-read vulnerability was found in Vim's put_on_cmdline() function of the src/ex_getln.c file. This issue occurs due to invalid memory access when using an expression on the command line. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap buffer overflow that causes an application to crash and corrupt memory.
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: 2101815, 2101816, 2101817    
Bug Blocks: 2101294    

Description Avinash Hanwate 2022-06-27 05:18:38 UTC
Buffer Over-read in GitHub repository vim/vim prior to 8.2.

https://github.com/vim/vim/commit/6046aded8da002b08d380db29de2ba0268b6616e
https://huntr.dev/bounties/7f0481c2-8b57-4324-b47c-795d1ea67e55

Comment 2 TEJ RATHI 2022-06-28 12:48:44 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2101815]