Bug 2102185 (CVE-2022-2207)

Summary: CVE-2022-2207 vim: heap-based buffer overflow in function ins_bs
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: gchamoul, karsten, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.5162 Doc Type: If docs needed, set a value
Doc Text:
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: 2102186, 2129174, 2129175    
Bug Blocks: 2102155    

Description Marian Rehak 2022-06-29 12:41:59 UTC
A heap-based buffer overflow in function ins_bs may lead to corruption of sensitive information, a crash, or code execution.

Reference:

https://huntr.dev/bounties/05bc6051-4dc3-483b-ae56-cf23346b97b9
https://github.com/vim/vim/commit/0971c7a4e537ea120a6bb2195960be8d0815e97b

Comment 1 Marian Rehak 2022-06-29 12:42:12 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2102186]

Comment 4 Zack Miele 2022-09-22 18:45:44 UTC
PoC does not trigger on rhel-8 version, but does not check if the cursor column is more than zero when in replace mode. PoC triggers asan abort with rhel-9 version.