-
-
Notifications
You must be signed in to change notification settings - Fork 308
Fix issue with handling of failure during discard of metadata cache entries #5817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Context: |
749a292
to
eaa68ee
Compare
…ntries When discarding a metadata cache entry after flushing it, errors during the discard process could cause the library to skip calling the 'free_icr' callback for the entry. This could result in resource leaks and the inability of the cache to be fully flushed and closed due to issues such as pinned entries remaining in the cache. This has been fixed by noting errors during the discard process, but attempting to fully free a cache entry before signalling that an error has occurred. Fixes CVE-2025-7068
When discarding a metadata cache entry after flushing it, errors during the discard process could cause the library to skip calling the 'free_icr' callback for the entry. This could result in resource leaks and the inability of the cache to be fully flushed and closed due to issues such as pinned entries remaining in the cache. This has been fixed by noting errors during the discard process, but attempting to fully free a cache entry before signalling that an error has occurred.
Fixes CVE-2025-7068
Fixes #5578
Also fixes #4586
Important
Fixes resource leak issue in metadata cache discard process, addressing CVE-2025-7068 by ensuring proper cleanup in
H5Centry.c
.H5C__flush_single_entry()
inH5Centry.c
where errors during discard could skipfree_icr
callback, causing resource leaks.H5C__discard_single_entry()
to handle entry discard, ensuring cleanup even on errors.RELEASE.txt
to include fix for CVE-2025-7068 and GitHub issue [BUG] Memory leaks inH5FL__malloc
atsrc/H5FL.c:211:30
#5578.This description was created by
for 749a292. You can customize this summary. It will automatically update as commits are pushed.