Bug 1625424 (CVE-2018-16438)

Summary: CVE-2018-16438 hdf5: out of bounds read in H5L_extern_query at H5Lexternal.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, anto.trande, apevec, c.david86, chrisw, dakingun, dbaker, hbrock, igor.raits, jjoyce, jokerman, jschluet, jslagle, lhh, lpeer, markmc, mburns, orion, rbryant, sclewis, slinaber, sthangav, tdecacqu, trankin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An out of bounds read in H5L_extern_query at H5Lexternal.c was discovered in the HDF HDF5 1.8.20 library. Using a specially crafted file, an attacker could cause a denial of service condition due to inadequate bounds checking.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:15:48 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: 1625427, 1625426, 1629505, 1629506, 1629507, 1629508, 1629509, 1629510    
Bug Blocks: 1625428    

Description Laura Pardo 2018-09-04 22:03:25 UTC
An issue was discovered in the HDF HDF5 1.8.20 library. There is an out of bounds read in H5L_extern_query at H5Lexternal.c.


References:
https://github.com/TeamSeri0us/pocs/tree/master/hdf5/h5stat

Comment 1 Laura Pardo 2018-09-04 22:05:02 UTC
Created hdf5 tracking bugs for this issue:

Affects: epel-all [bug 1625427]
Affects: fedora-all [bug 1625426]

Comment 2 James Hebden 2018-09-17 01:16:58 UTC
Reproduced in hdf5 package on all RHOSP editions, using the provided reproducer file from the linked repository (https://github.com/TeamSeri0us/pocs/tree/master/hdf5/h5stat)

h5stat H5L_extern_query\@H5Lexternal.c\:498-10___out-of-bounds-read
Filename: H5L_extern_query:498-10___out-of-bounds-read
Segmentation fault (core dumped)

No upstream patch or source code analysis has been provided or performed, the backtrace provided in the PoC repository is the current best analysis.