# CVE-2026-120758: NULL Pointer Dereference in H5HL_unprotect via Corrupted File

- Severity: Medium 5.4 (CVSS:4.0, scored by HDFG) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-11-03T15:38:09.387Z
- Modified: 2026-11-03T21:08:46.573Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- The HDF Group HDF5: < 2.3.0
- hdfgroup hdf5: up to 2.2.0

## Every score

- HDFG: CVSS:4.0 5.4 Medium `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`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/HDFGroup/hdf5/pull/6377> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2026-120758](https://www.cve.org/CVERecord?id=CVE-2026-120758), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2026-120758](https://nvd.nist.gov/vuln/detail/CVE-2026-120758), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-120758 · Whole record: https://cve.day/CVE-2026-120758.json · Rebuilt by cve.day 2026-11-25T22:59:48.493Z
