Bug 2189106 (CVE-2021-46879)

Summary: CVE-2021-46879 fluent-bit: heap overflow in flb_msgpack_gelf_value_ext
Product: [Other] Security Response Reporter: Anten Skrabec <askrabec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
The package fluent-bit was found to be vulnerable to Heap-based Buffer Overflow due to a wrong variable being used to get msgpack data in the flb_msgpack_gelf_value_ext() function.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-24 13:16:09 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: 2189108, 2189109    
Bug Blocks: 2186018    

Description Anten Skrabec 2023-04-24 08:39:15 UTC
An issue was discovered in Treasure Data Fluent Bit 1.7.1, a wrong variable is used to get the msgpack data resulting in a heap overflow in flb_msgpack_gelf_value_ext. An attacker can craft a malicious file and tick the victim to open the file with the software, triggering a heap overflow and execute arbitrary code on the target system.

Comment 1 Anten Skrabec 2023-04-24 08:39:43 UTC
Created fluent-bit tracking bugs for this issue:

Affects: epel-8 [bug 2189109]
Affects: fedora-all [bug 2189108]

Comment 2 Product Security DevOps Team 2023-04-24 13:16:08 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.