Bug 1906782 (CVE-2020-16590)

Summary: CVE-2020-16590 binutils: double free vulnerability in process_symbol_table could result in DoS
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adscvr, ailan, aoliva, dvlasenk, elima, erik-fedora, fidencio, fweimer, jakub, klember, ktietz, law, manisandro, marcandre.lureau, mcermak, mnewsome, mpolacek, mprchlik, nickc, ohudlick, rjones, sipoyare, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: binutils 2.35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-23 00:27:55 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: 1906783, 1906784    
Bug Blocks: 1906786    

Description Michael Kaplan 2020-12-11 11:57:23 UTC
A double free vulnerability exists in the Binary File Descriptor (BFD) (aka libbrd) in GNU Binutils 2.34 in the process_symbol_table, as demonstrated in readelf, via a crafted file.

External References:

https://sourceware.org/bugzilla/show_bug.cgi?id=25821
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c98a4545dc7bf2bcaf1de539c4eb84784680eaa4

Comment 1 Michael Kaplan 2020-12-11 11:58:23 UTC
Created binutils tracking bugs for this issue:

Affects: fedora-32 [bug 1906783]


Created mingw-binutils tracking bugs for this issue:

Affects: fedora-all [bug 1906784]

Comment 3 Todd Cullum 2020-12-21 23:49:10 UTC
Flaw summary:

This flaw is a simple typo where `chains` is free()'d but `bucket` is accidentally set to NULL instead of chains. Since chains is not set to NULL, this can result in a double-free. It doesn't exist in the code we ship in 2.30 or 2.35 and thus is not affected.

Comment 4 Todd Cullum 2020-12-22 20:09:16 UTC
Statement:

binutils as shipped in Red Hat Developer Toolsets 9 and 10, Red Hat Enterprise Linux 8 BaseOS and GCC Toolsets 9 and 10, are all not affected by this flaw as it was introduced in a newer version of binutils code than shipped for BaseOS and the 9 toolsets, but already patched in the versions shipped with 10 toolsets.

Comment 5 Product Security DevOps Team 2020-12-23 00:27:55 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-2020-16590