HDF5 Memory Leak Vulnerability in H5FL__malloc Function

Vulnerability

A memory leak vulnerability has been identified in HDF5 version 1.14.6. The issue arises in the H5FL__malloc function within the file src/H5FL.c. This vulnerability leads to a denial-of-service condition by causing excessive memory consumption. The vulnerability must be exploited locally, and a public proof-of-concept exploit is available.

Impact

Exploitation of this vulnerability causes a memory leak, where allocated memory is not properly released after use, leading to increased memory consumption and potential denial-of-service conditions.

Reproduction

The vulnerability can be reproduced by compiling HDF5 with Clang, using specific compiler flags to enable address sanitization and optimization settings that facilitate fuzzing. After building the library, the HDF5 extended fuzzer, which is part of the OSS-Fuzz project, can be used to trigger the memory leak by opening datasets with crafted inputs that exploit the flaw in the H5FL__malloc function.

Added: Jul 4, 2025, 9:18 PM
Updated: Jul 4, 2025, 9:18 PM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
2.5
exploitability
4.6
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.