CVEfocus › CVE database › CVE-2025-50518

CVE-2025-50518

CVSS 9.8 CriticalEPSS 1.0% (higher than 63% of CVEs)Published 2025-08-14Updated 2025-09-11Assigner: mitre

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.

CWE-416

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcoap3Fix pendingUBUNTU-CVE-2025-50518
Ubuntu 26.04libcoap3Will not fix
Not a valid vulnerability, issue closed
UBUNTU-CVE-2025-50518
Ubuntu 25.10libcoap3Will not fix
Not a valid vulnerability, issue closed
UBUNTU-CVE-2025-50518
Ubuntu 24.04libcoap3Will not fix
Not a valid vulnerability, issue closed
UBUNTU-CVE-2025-50518
Ubuntu 22.04libcoap2Will not fix
Not a valid vulnerability, issue closed
UBUNTU-CVE-2025-50518
Ubuntu 22.04libcoap3Will not fix
Not a valid vulnerability, issue closed
UBUNTU-CVE-2025-50518
Ubuntu 20.04libcoap2Fix pendingUBUNTU-CVE-2025-50518
Ubuntu 18.04libcoapFix pendingUBUNTU-CVE-2025-50518

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.