Bug 2119043 (CVE-2022-2817)

Summary: CVE-2022-2817 vim: heap use-after-free in string_quote() at src/strings.c
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, jburrell, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 9.0.0213 Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in Vim in the string_quote function in the strings.c file. This issue occurs because an already freed memory is used when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file into triggering the use-after-free, causing the application to crash, possibly executing code and corrupting 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: 2119045, 2122297    
Bug Blocks: 2119047    

Description TEJ RATHI 2022-08-17 10:58:51 UTC
Use After Free in GitHub repository vim/vim prior to 9.0.0212.

https://github.com/vim/vim/commit/249e1b903a9c0460d618f6dcc59aeb8c03b24b20
https://huntr.dev/bounties/a7b7d242-3d88-4bde-a681-6c986aff886f

Comment 1 TEJ RATHI 2022-08-17 10:59:06 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2119045]