JLSEC-2026-1563: Null Pointer Dereference
HDF5 through 2.2.0 contains a NULL pointer dereference vulnerability in H5HLunprotect() in src/H5HL.c. H5HLprotect() pins a single metadata cache entry for a local heap, either the heap prefix or the separate data block, and H5HLunprotect() unpins it on the final unprotect. When the metadata cache destroys a corrupted local heap entry, H5HLprfxdest() unlinks it from the heap by setting heap->prfx or heap->dblk to NULL. A crafted HDF5 file can therefore reach H5HLunprotect() with no cached object to unpin, and the function passes the NULL pointer to H5ACunpinentry(). This causes an assertion failure in debug builds and a NULL pointer dereference and crash in release builds. An attacker who can get a user or application to open and traverse a malicious file can cause a denial of service.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/HDF5_jllto a version that resolves this vulnerability.Fixed in 2.3.0+0
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users or applications that open and traverse HDF5 files from untrusted sources are exposed. The issue can be triggered by a crafted HDF5 file and results in a denial of service through an assertion failure or crash.
What does an attacker need to exploit it?
An attacker needs to supply a malicious HDF5 file and have a user or application open and traverse it. The vector is local and requires user interaction; no attacker privileges are required.
Are confidentiality or integrity affected?
The provided severity vector indicates no confidentiality or integrity impact. The documented impact is availability loss from a crash.
How can I tell whether a crash may be related to this vulnerability?
Affected failures occur while processing a corrupted local heap entry, reaching H5HL_unprotect() with a NULL cached object passed to H5AC_unpin_entry(). Debug builds may fail an assertion, while release builds may show a NULL pointer dereference and crash.