Bug 1956348 (CVE-2021-20204)

Summary: CVE-2021-20204 getdata: Use after free in _GD_Supports() in encoding.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: business, emedo_50047k, fpy1nvkl, ft82dw_g, gwync, hinessandra50, jaromir.capik, lucibranden0590, romandavis112, tuxmealux+redhatbz, zenabartell2
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libgetdata. A heap memory corruption problem (use after free) can be triggered when processing maliciously crafted dirfile databases. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-03 16:46: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: 1956350    
Bug Blocks:    

Description Pedro Sampaio 2021-05-03 14:09:43 UTC
A heap memory corruption problem (use after free) can be triggered in libgetdata v0.10.0 when processing maliciously crafted dirfile databases. This degrades the confidentiality, integrity and availability of third-party software that uses libgetdata as a library. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.

References:

https://bugzilla.redhat.com/show_bug.cgi?id=1917635

Comment 1 Pedro Sampaio 2021-05-03 14:10:28 UTC
Created getdata tracking bugs for this issue:

Affects: fedora-all [bug 1956350]

Comment 2 Product Security DevOps Team 2021-05-03 16:46:32 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.

Comment 3 Gianluca Gabrielli 2021-05-07 12:27:34 UTC
Could you please share the patch or make https://bugzilla.redhat.com/show_bug.cgi?id=1917635 publicly accessible? Thanks

Comment 10 Gianluca Gabrielli 2021-06-29 16:09:07 UTC
(In reply to Gianluca Gabrielli from comment #3)
> Could you please share the patch or make
> https://bugzilla.redhat.com/show_bug.cgi?id=1917635 publicly accessible?
> Thanks

Hi Pedro, any input here?

Comment 13 Pedro Sampaio 2021-07-07 19:44:47 UTC
In reply to comment #10:
> (In reply to Gianluca Gabrielli from comment #3)
> > Could you please share the patch or make
> > https://bugzilla.redhat.com/show_bug.cgi?id=1917635 publicly accessible?
> > Thanks
> 
> Hi Pedro, any input here?

I don't think there is a patch available but I opened the bug for view:

https://bugzilla.redhat.com/show_bug.cgi?id=1917635