Skip to content

Commit

Permalink
Merge pull request #2609 in HDFFV/hdf5 from ~BMRIBLER/hdf5-bmr:develo…
Browse files Browse the repository at this point in the history
…p to develop

Fix HDFFV-11053 (CVE-2020-10810)

* commit 'b155a777629e991374fa2f8609719cb861de4cc2':
  Changed wording in comment.
  - added comment to explain a kluge - added the associated entry to release notes
  Fix HDFFV-11053
  • Loading branch information
bmribler committed Jun 30, 2020
2 parents 23cc4ce + b155a77 commit 267ff90
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,15 @@ Bug Fixes since HDF5-1.10.3 release

Library
-------
- Fixed the decoding of an attribute message to prevent a segfault by h52gif
- Fixed CVE-2020-10810

The tool h5clear produced a segfault during an error recovery in
the superblock decoding. An internal pointer was reset to prevent
further accessing when it is not assigned with a value.

(BMR - 2020/6/29, HDFFV-11053)

- Fixed CVE-2018-17435

The tool h52gif produced a segfault when the size of an attribute
message was corrupted and caused a buffer overflow.
Expand Down
6 changes: 6 additions & 0 deletions src/H5Fsuper.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,13 @@ H5F__super_read(H5F_t *f, H5P_genplist_t *fa_plist, hbool_t initial_read)
}
else {
if(H5F__super_ext_remove_msg(f, H5O_FSINFO_ID) < 0)
{
#if 1 /* bug fix test code -- tidy this up if all goes well */ /* JRM */
f->shared->sblock = NULL;
#endif /* JRM */

HGOTO_ERROR(H5E_FILE, H5E_CANTDELETE, FAIL, "error in removing message from superblock extension")
}

if(H5F__super_ext_write_msg(f, H5O_FSINFO_ID, &fsinfo, TRUE, H5O_MSG_FLAG_MARK_IF_UNKNOWN) < 0)
HGOTO_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, "error in writing fsinfo message to superblock extension")
Expand Down

0 comments on commit 267ff90

Please sign in to comment.