Bug 2244101 (CVE-2023-5535)

Summary: CVE-2023-5535 vim: use after free
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ntait, rtillery
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.2010 Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow vulnerability was found in some affected packages of Vim. This flaw allows an attacker to send a specially crafted file that could lead to a complete system compromise when opened by a victim.
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: 2244102, 2244133    
Bug Blocks: 2244100    

Description Robb Gatica 2023-10-13 19:39:49 UTC
Problem: use-after-free from buf_contents_changed()
Solution: block autocommands
Patched in v9.0.2010

https://github.com/vim/vim/commit/41e6f7d6ba67b61d911f9b1d76325cd79224753d
https://huntr.dev/bounties/2c2d85a7-1171-4014-bf7f-a2451745861f

Comment 1 Robb Gatica 2023-10-13 19:40:53 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2244102]