Skip to content

Potential double free and use after free (alerts 13,14)#3751

Merged
rhc54 merged 1 commit intoopenpmix:masterfrom
rhc54:topic/fix-alert-13,14
Dec 25, 2025
Merged

Potential double free and use after free (alerts 13,14)#3751
rhc54 merged 1 commit intoopenpmix:masterfrom
rhc54:topic/fix-alert-13,14

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Dec 25, 2025

Deallocating memory more than once can lead to a double-free vulnerability. This can be exploited to corrupt the allocator's internal data structures, which can lead to denial-of-service attacks by crashing the program, or security vulnerabilities, by allowing an attacker to overwrite arbitrary memory locations.

This rule finds accesses through a pointer of a memory location that has already been freed (i.e. through a dangling pointer). Such memory blocks have already been released to the dynamic memory manager, and modifying them can lead to anything from a segfault to memory corruption that would cause subsequent calls to the dynamic memory manager to behave erratically, to a possible security vulnerability.

Deallocating memory more than once can lead to a double-free vulnerability. This can be exploited to corrupt the allocator's internal data structures, which can lead to denial-of-service attacks by crashing the program, or security vulnerabilities, by allowing an attacker to overwrite arbitrary memory locations.

This rule finds accesses through a pointer of a memory location that has already been freed (i.e. through a dangling pointer). Such memory blocks have already been released to the dynamic memory manager, and modifying them can lead to anything from a segfault to memory corruption that would cause subsequent calls to the dynamic memory manager to behave erratically, to a possible security vulnerability.

Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit db5b517 into openpmix:master Dec 25, 2025
26 checks passed
@rhc54 rhc54 deleted the topic/fix-alert-13,14 branch December 25, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant