Bug 2388607 (CVE-2025-50518)

Summary: CVE-2025-50518 libcoap: Libcoap Use-After-Free Vulnerability
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in libcoap. The `coap_delete_pdu_lkd` function in `coap_pdu.c` exhibits a use-after-free condition due to improper memory management following the deallocation of a Packet Data Unit (PDU) object. This can allow a local attacker to trigger memory corruption. Exploitation occurs when a freed PDU object is accessed, leading to unpredictable program behavior.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2388738, 2388740    
Bug Blocks:    

Description OSIDB Bzimport 2025-08-14 17:01:12 UTC
A use-after-free vulnerability exists in the coap_delete_pdu_lkd function within coap_pdu.c of the libcoap library. This issue occurs due to improper handling of memory after the freeing of a PDU object, leading to potential memory corruption or the possibility of executing arbitrary code.