CVE-2025-50518: Use After Free

Published Aug 14, 2025
·
Updated

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

1 affected component
libcoap libcoap

Event History

Aug 14, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203