CVE-2026-120758
published medium CVSS 4.0 · 5.4NULL Pointer Dereference in H5HL_unprotect via Corrupted File
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| The HDF Group | — | HDF5< 2.3.0 · Other versions: unaffected | Affected | Not stated | HDFG |
Description
HDF5 through 2.2.0 contains a NULL pointer dereference vulnerability in H5HL_unprotect() in src/H5HL.c. H5HL_protect() pins a single metadata cache entry for a local heap, either the heap prefix or the separate data block, and H5HL_unprotect() unpins it on the final unprotect. When the metadata cache destroys a corrupted local heap entry, H5HL__prfx_dest() unlinks it from the heap by setting heap->prfx or heap->dblk to NULL. A crafted HDF5 file can therefore reach H5HL_unprotect() with no cached object to unpin, and the function passes the NULL pointer to H5AC_unpin_entry(). 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- HDFG · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| The HDF Group | HDF5 | < 2.3.0 (affected)Default: unaffected | HDFG · cna |
Weaknesses
1- CWE-476 CWE-476 NULL pointer dereference
References
1Provider assertions
2HDFG · cna
NULL Pointer Dereference in H5HL_unprotect via Corrupted File
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 88ba1176e948d6e4eb88ee174e82c1a7ee7f0c20d2b3dbdfa51c29b7b408d5df
- Ingested
- 03 Nov 2026, 17:55:35 UTC
- Source record
- Official CVE record