CVE-2025-50518 Details
Description
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. NOTE: this is disputed by the Supplier because it only occurs when an application uses libcoap incorrectly.
A use-after-free vulnerability has been identified in the libcoap library, specifically in version 4.3.5. The issue arises in the coap_delete_pdu_lkd function within coap_pdu.c, where improper memory management after freeing a Protocol Data Unit (PDU) object can lead to memory corruption or the execution of arbitrary code. This vulnerability was discovered during fuzz testing with libFuzzer, which revealed that the coap_pdu object management functions mishandled memory, creating a dangling pointer to freed memory. Exploitation involves passing specially crafted input to the fuzzing function, triggering the use-after-free condition when a PDU object is deleted.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 14, 2025CISA-ADP
Assessed Aug 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| obgm libcoap | 4.3.5 (semver) |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 11, 2025 | CVE Modified | CISA-ADP |
| Sep 2, 2025 | CVE Modified | [email protected] |
| Aug 15, 2025 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | New CVE Received | [email protected] |
Volerion