Bug 1397704 (CVE-2016-4331)

Summary: CVE-2016-4331 hdf5: H5Z_NBIT heap buffer overflow
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, apevec, ayoung, ccoleman, c.david86, chrisw, cvsbot-xmlrpc, dedgar, dmcphers, gmollett, hbrock, jgoulding, jialiu, jjoyce, joelsmith, jokerman, jschluet, jslagle, kbasil, lhh, lmeyer, lpeer, markmc, mburns, mmccomas, orion, pertusus, rbryant, rhos-maint, sclewis, tdecacqu, tiwillia
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Multiple heap overflows were found in HDF5. These issues could be used to gain code execution in any program that exposes the affected functions to untrusted input. While HDF5 is shipped as a dependency, no Red Hat products are known to expose these issues in any supported use case at this time.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 21:15:59 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: 1397715, 1397716, 1413825, 1470479    
Bug Blocks: 1397712    

Description Andrej Nemec 2016-11-23 08:45:10 UTC
The vulnerability exists when the library is decoding data out of a dataset encoded with the H5Z_NBIT decoding. When calculating the precision that a BCD number is encoded as, the library will fail to ensure that the precision is within the bounds of the size. Due to this, the library will calculate an index outside the bounds of the space allocated for the BCD number. Whilst decoding this data, the library will then write outside the bounds of the buffer leading to a heap-based buffer overflow. This can lead to code execution under the context of the application using the library.

External References:

http://www.talosintelligence.com/reports/TALOS-2016-0177/

Comment 1 Andrej Nemec 2016-11-23 08:55:14 UTC
Created hdf5 tracking bugs for this issue:

Affects: fedora-all [bug 1397715]
Affects: epel-all [bug 1397716]

Comment 3 Kurt Seifried 2017-07-13 02:39:41 UTC
Created hdf5 tracking bugs for this issue:

Affects: openshift-1 [bug 1470479]

Comment 4 Product Security DevOps Team 2020-05-20 21:15:59 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-2016-4331