Bug 1300303 (CVE-2015-8778)

Summary: CVE-2015-8778 glibc: Integer overflow in hcreate and hcreate_r
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aavati, arjun.is, ashankar, codonell, fweimer, jakub, jwalter, law, mfabian, mnewsome, nlevinki, pfrankli, rfortier, rhs-bugs, sardella, sgirijan, siddhesh, slawomir, ssaha, vbellur, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glibc 2.23 Doc Type: Bug Fix
Doc Text:
An integer overflow vulnerability was found in hcreate() and hcreate_r() functions which could result in an out-of-bounds memory access. This could lead to application crash or, potentially, arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:47:34 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: 1300304, 1358013, 1374657    
Bug Blocks: 1300316, 1386080, 1415638    

Description Adam Mariš 2016-01-20 12:52:02 UTC
An integer overflow vulnerability was found in hcreate and hcreate_r which can result in an out-of-bound memory access.  This could lead to application crashes or, potentially, arbitrary code execution.

Upstream bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=18240

CVE assignment:

http://seclists.org/oss-sec/2016/q1/153

Comment 1 Adam Mariš 2016-01-20 12:52:55 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 1300304]

Comment 4 Martin Prpič 2016-07-07 07:57:03 UTC
Mitigation:

Do not use any applications which call hcreate or hcreate_r with a large size argument.

These functions are used only rarely, and most callers supply a constant argument.  Other applications calculate the size argument in such a way that the error condition cannot be triggered.

Comment 6 errata-xmlrpc 2017-03-21 10:35:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0680 https://rhn.redhat.com/errata/RHSA-2017-0680.html

Comment 8 errata-xmlrpc 2017-08-01 18:12:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1916 https://access.redhat.com/errata/RHSA-2017:1916