CVE-2025-50518: Use After Free
A use-after-free vulnerability exists in the coapdeletepdulkd function within coappdu.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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-50518?
CVE-2025-50518 is classified as a critical severity vulnerability due to the potential for memory corruption and arbitrary code execution.
How do I fix CVE-2025-50518?
To fix CVE-2025-50518, update to the latest version of the libcoap library where the use-after-free vulnerability has been addressed.
What software is affected by CVE-2025-50518?
CVE-2025-50518 affects the libcoap library, specifically in the coap_delete_pdu_lkd function within coap_pdu.c.
What is a use-after-free vulnerability like CVE-2025-50518?
A use-after-free vulnerability, such as CVE-2025-50518, occurs when a program continues to use a memory reference after the memory has been freed, leading to undefined behavior.
Can CVE-2025-50518 lead to remote code execution?
Yes, CVE-2025-50518 can lead to remote code execution due to improper memory handling after freeing a PDU object.