CVE-2025-50518

CRITICAL

libcoap - Use-After-Free in coap_delete_pdu_lkd

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 9.8
EPSS 0.0042
EPSS Percentile 33.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-416
Status published
Published Aug 14, 2025
Tracked Since Feb 18, 2026