Skip to content
OpenAdvisories
Critical · 9.8 CVE-2025-50518 EUVD-2025-24861GHSA-fc59-q736-3r9p

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 t…

Published Aug 14, 2025 · Updated Sep 11, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 libcoap3 No fix yet —
Ubuntu 26.04 LTS libcoap3 No fix yet —
Ubuntu 25.10 libcoap3 No fix yet —
Ubuntu 24.04 LTS libcoap3 No fix yet —
Ubuntu 22.04 LTS libcoap2 +1 No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libcoap2 No fix yet —
Ubuntu 18.04 LTS libcoap No fix yet —

References