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

Medium 5.4 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-120758?

CVE-2026-120758 is a medium-severity vulnerability in HDF Group HDF5, published on 3 Nov 2026.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2026-120758?

It affects 1 product.

Status by vendor (4)
WhoReleaseStatusPackages
Upstreamaffectedhdfgroup:hdf5
Red Hatenterprise_linux_ai:3deferredhdf5
Red Hathummingbird:1fixedhdf5 (2.2.0-0.1.5.hum1), hdf5-devel (2.2.0-0.1.5.hum1), hdf5-mpich (2.2.0-0.1.5.hum1) and 7 more
Red Hatopenstack:13deferredhdf5

Products include HDF Group HDF5.

How do I fix CVE-2026-120758?

Upgrade to a fixed version.

Is CVE-2026-120758 being exploited?

There is no known exploitation of CVE-2026-120758 in the wild and no public exploit code.

All HDF Group HDF5 vulnerabilities

Sources

Also known as AZL-112640, DEBIAN-CVE-2026-120758, ECHO-811b-90b8-b5e2, GHSA-49fv-ggjg-jcjc, UBUNTU-CVE-2026-120758.

Is CVE-2026-120758 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free