mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix CVE-2025-2926 (#5841)
An image size was corrupted and decoded as 0 resulting in a NULL image buffer, which caused a NULL pointer dereference when the image being copied to the buffer. The invalid image size was caught in the PR #5710. This change catches right before the copying. Fixes GH issue #5384
This commit is contained in:
@@ -650,6 +650,12 @@ Added Fortran wrapper h5fdsubfiling_get_file_mapping_f() for the subfiling file
|
||||
|
||||
Fixes GitHub issue [#5382](https://github.com/HDFGroup/hdf5/issues/5382)
|
||||
|
||||
### Fixed security issues CVE-2025-2913 and CVE-2025-2926
|
||||
|
||||
The size of a continuation message was decoded as 0, causing multiple vulnerabilities. An error check was added to return failure to prevent further processing of invalid data.
|
||||
|
||||
Fixes GitHub issue #5376 and #5384
|
||||
|
||||
### Revised handling of Unicode filenames on Windows<a name="utf-8">
|
||||
|
||||
In the HDF5 1.14.4 release, a change was made to address some issues with the library's handling of code pages and file paths on Windows. This change introduced other issues with the handling of UTF-8 file names that caused breakage for software using the 1.14.4 and 1.14.5 releases of HDF5. That change was reverted for the 1.14.6 release and the behavior has been slightly modified for this release.
|
||||
|
||||
@@ -602,6 +602,7 @@ H5O__cache_chk_get_initial_load_size(void *_udata, size_t *image_len)
|
||||
assert(udata);
|
||||
assert(udata->oh);
|
||||
assert(image_len);
|
||||
assert(udata->size);
|
||||
|
||||
/* Set the image length size */
|
||||
*image_len = udata->size;
|
||||
|
||||
Reference in New Issue
Block a user