Bug 2044607 (CVE-2022-0261)

Summary: CVE-2022-0261 vim: Heap-based buffer overflow in block_insert() in src/ops.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, dhalasz, fhrdina, fjansen, gchamoul, jburrell, jwong, karsten, kaycoth, micjohns, sthirugn, tkasparek, trathi, vkrizan, vkumar, vmugicag, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vim 8.2.4219 Doc Type: If docs needed, set a value
Doc Text:
A heap based out-of-bounds write flaw was found in vim's ops.c. This flaw allows an attacker to trick a user to open a crafted file triggering an out-of-bounds write. This vulnerability is capable of crashing software, modify memory, and possible code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-15 15:47:32 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: 2044608, 2044636, 2045020, 2045021, 2046116, 2046117    
Bug Blocks: 2044609    

Description Pedro Sampaio 2022-01-24 19:58:55 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.

Reference:

https://github.com/vim/vim/commit/9f8c304c8a390ade133bac29963dc8e56ab14cbc
https://huntr.dev/bounties/fa795954-8775-4f23-98c6-d4d4d3fe8a82

Comment 1 Pedro Sampaio 2022-01-24 19:59:20 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2044608]

Comment 2 juneau 2022-01-24 21:07:38 UTC
Marked services affected/defer. Affected code is present, however impact is low and actual occurrence of flaw is unlikely at best.

Comment 3 juneau 2022-01-24 21:11:00 UTC
Correction to above: s/defer/delegated/

Comment 11 errata-xmlrpc 2022-03-15 10:20:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0894 https://access.redhat.com/errata/RHSA-2022:0894

Comment 12 Product Security DevOps Team 2022-03-15 15:47:28 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-2022-0261