Bug 2122137 (CVE-2022-2849)

Summary: CVE-2022-2849 vim: heap-based buffer overflow in latin_ptr2len() at src/mbyte.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.0220 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: 2122138, 2125324, 2125325    
Bug Blocks: 2122143    

Description TEJ RATHI 2022-08-29 10:27:56 UTC
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0220.

https://huntr.dev/bounties/389aeccd-deb9-49ae-9b6a-24c12d79b02e
https://github.com/vim/vim/commit/f6d39c31d2177549a986d170e192d8351bd571e2

Comment 1 TEJ RATHI 2022-08-29 10:28:15 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2122138]

Comment 2 Zack Miele 2022-09-08 15:54:01 UTC
latin_ptr2len and dbcs_ptr2len in mbyte.c can return null values for byte lengths.