Bug 1397704 (CVE-2016-4331) - CVE-2016-4331 hdf5: H5Z_NBIT heap buffer overflow
Summary: CVE-2016-4331 hdf5: H5Z_NBIT heap buffer overflow
Keywords:
Status: NEW
Alias: CVE-2016-4331
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1397715 1397716 1413825 1470479
Blocks: 1397712
TreeView+ depends on / blocked
 
Reported: 2016-11-23 08:45 UTC by Andrej Nemec
Modified: 2019-09-29 14:00 UTC (History)
33 users (show)

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.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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]


Note You need to log in before you can comment on or make changes to this bug.