Submit #520880: https://github.com/HDFGroup/hdf5 HDF5 v1.14.6 Heap-based Buffer Overflowinfo

Titlehttps://github.com/HDFGroup/hdf5 HDF5 v1.14.6 Heap-based Buffer Overflow
DescriptionA heap-buffer-overflow vulnerability was discovered in the H5FS__sinfo_serialize_sect_cb function within the HDF5 Library. This issue occurs when processing certain files, leading to an out-of-bounds write and potential application crash. The vulnerability arises in the H5FS__sinfo_serialize_sect_cb function defined in src/H5FScache.c at line 1390. The function fails to properly check the buffer boundaries, resulting in a write operation beyond the allocated memory. In the function H5FS__sinfo_Srialize_Sct_cb, UINT64ENCODE_VAR(*udata->image, sect->addr, udata->sinfo->sect_off_size); will be called, and not performing boundary checks before calling UINT64ENCODE_VAR resulted in at least 1 byte overflow.
Source⚠️ https://github.com/HDFGroup/hdf5/issues/5379
User
 Anonymous User
Submission03/15/2025 06:57 (1 Year ago)
Moderation03/28/2025 12:01 (13 days later)
StatusAccepted
VulDB entry301887 [HDF5 up to 1.14.6 src/H5FScache.c H5FS__sinfo_Srialize_Sct_cb sect heap-based overflow]
Points20

Do you need the next level of professionalism?

Upgrade your account now!