CVE-2025-50518
JSON

9.8critical

A use-after-free vulnerability exists in the coapdeletepdulkd function within coappdu.c of the libcoap library.

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.53% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List

Classification

CWE-416

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Existe una vulnerabilidad de use-after-free en la función coap_delete_pdu_lkd, dentro de coap_pdu.c de la librería libcoap. Este problema se produce debido a un manejo inadecuado de la memoria tras la liberación de un objeto PDU, lo que puede provocar corrupción de memoria o la ejecución de código arbitrario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-50518 changed 2025-09-11CVE Terms of Use
NVDCVE-2025-50518 changed 2026-06-17Public domain