Bug 2102185 (CVE-2022-2207) - CVE-2022-2207 vim: heap-based buffer overflow in function ins_bs
Summary: CVE-2022-2207 vim: heap-based buffer overflow in function ins_bs
Keywords:
Status: NEW
Alias: CVE-2022-2207
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2102186 2129174 2129175
Blocks: 2102155
TreeView+ depends on / blocked
 
Reported: 2022-06-29 12:41 UTC by Marian Rehak
Modified: 2023-07-07 08:34 UTC (History)
3 users (show)

Fixed In Version: vim 8.2.5162
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.