Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-26197 EUVD-2026-45969

Array full size, element count, and element size are not checked to make sure they match in H5Odtype.c

Published Jul 20, 2026 · Updated Jul 20, 2026 · Assigned by GitHub_M

Description

HDF5 is a high-performance library and a file format specification that implements the HDF5 data model. If a file is corrupted such that an array datatype's size, the number of elements, and the element size are not in agreement it can trigger an out of bounds read. The array datatype stores the full size of the datatype (`dt->shared->size`) separately from the number of elements (`dt->shared->u.array.nelem`) and the element size (`dt->shared->parent->shared->size`). If any one of these are corrupted so that they don't align with the others (element size * nelem = full size), it can lead to an out of bounds read. Depending on what is corrupted, it can alter the type of out of bounds read triggered. The vulnerability is present only in files that have been maliciously altered, as its generally not possible to independently alter the full size of the datatype, the element count and the element size. As such, this is only present if a malicious actor is altering files, and won't appear in regular usage.

Affected products

VendorProductAffectedFixed
HDFGroup hdf5 < 2.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 hdf5 2.1.0+repack-1 —
Debian 13 hdf5 No fix yet —
Debian 12 hdf5 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 hdf5 No fix yet —
Ubuntu 26.04 LTS hdf5 No fix yet —
Ubuntu 24.04 LTS hdf5 No fix yet —
Ubuntu 22.04 LTS hdf5 No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS hdf5 No fix yet —
Ubuntu Pro 18.04 LTS hdf5 No fix yet —
Ubuntu Pro 16.04 LTS hdf5 No fix yet —
Ubuntu Pro 14.04 LTS hdf5 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 hdf5 +9 2.2.0-0.1.1.hum1 RHSA-2026:61630

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 hdf5 1.14.6-4 —

Advisories 1

References