Bug 2176457 (CVE-2023-1175)

Summary: CVE-2023-1175 vim: Incorrect Calculation of Buffer Size
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
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.1378 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Vim. There is an incorrect calculation of buffer size issue found in Vim's yank_copy_line() function of the register.c file. This flaw allows illegal memory access when using virtual editing as "startspaces" goes negative. An attacker can trick a user into opening a specially crafted file, triggering an issue that causes an application to crash leading to a denial of service, corrupting memory, and possibly executing code.
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: 2176458, 2177975, 2177976    
Bug Blocks: 2176460    

Description Pedro Sampaio 2023-03-08 12:59:02 UTC
Incorrect Calculation of Buffer Size in GitHub repository vim/vim prior to 9.0.1378.

References:

https://github.com/vim/vim/commit/c99cbf8f289bdda5d4a77d7ec415850a520330ba
https://huntr.dev/bounties/7e93fc17-92eb-4ae7-b01a-93bb460b643e

Comment 1 Pedro Sampaio 2023-03-08 12:59:17 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2176458]