Bug 2070437 (CVE-2022-1160)

Summary: CVE-2022-1160 vim: heap buffer overflow in get_one_sourceline
Product: [Other] Security Response Reporter: Borja Tarraso <btarraso>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gchamoul, karsten, michal.skrivanek, mperina, sbonazzo, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4647 Doc Type: ---
Doc Text:
A heap buffer overflow flaw was found in vim's get_one_sourceline() function of scriptfile.c file. This flaw occurs when "source" can read past the end of the copied line. This flaw allows an attacker to trick a user into opening a crafted file, triggering a heap-overflow and causing an application to crash, which leads to a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-01 14:56:22 UTC 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: 2070438    
Bug Blocks: 2070439    

Description Borja Tarraso 2022-03-31 08:07:21 UTC
A heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.

The issue has been fixed here: https://github.com/vim/vim/commit/2bdad6126778f907c0b98002bfebf0e611a3f5db

Comment 1 Borja Tarraso 2022-03-31 08:07:36 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2070438]

Comment 3 Product Security DevOps Team 2022-04-01 14:56:20 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-1160