Bug 1789499 (CVE-2019-20079)

Summary: CVE-2019-20079 vim: Use after free in window.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gchamoul, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.1.2136 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-13 20:09:42 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: 1789500    
Bug Blocks: 1789501    

Description Pedro Sampaio 2020-01-09 17:52:40 UTC
The autocmd feature in window.c in Vim before 8.1.2136 accesses freed memory.

Upstream patch:

https://github.com/vim/vim/commit/ec66c41d84e574baf8009dbc0bd088d2bc5b2421
https://github.com/vim/vim/compare/v8.1.2135...v8.1.2136

Comment 1 Pedro Sampaio 2020-01-09 17:53:02 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 1789500]

Comment 2 Riccardo Schirone 2020-01-13 16:49:48 UTC
Upstream issue:

https://github.com/vim/vim/issues/5041

Comment 3 Riccardo Schirone 2020-01-13 17:15:09 UTC
The following commit introduces the vulnerability:
https://github.com/vim/vim/commit/a27e1dcddc9e3914ab34b164f71c51b72903b00b

This commit was first introduced in upstream version v8.1.2121.

Comment 4 Riccardo Schirone 2020-01-13 17:19:13 UTC
Statement:

The versions of vim as shipped in Red Hat Enterprise Linux 5, 6, 7, and 8 are not affected by this flaw because the vulnerability was introduced in a newer version of the component.

Comment 5 Product Security DevOps Team 2020-01-13 20:09:42 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-2019-20079