UBUNTU-CVE-2025-50518

Source
https://ubuntu.com/security/CVE-2025-50518
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-50518
Upstream
  • CVE-2025-50518
Published
2025-08-14T16:15:00Z
Modified
2026-05-20T16:23:33.695953447Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:18.04:LTS
libcoap

Package

Name
libcoap
Purl
pkg:deb/ubuntu/libcoap?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.1.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap-1-0",
            "binary_version": "4.1.2-1"
        },
        {
            "binary_name": "libcoap-1-0-bin",
            "binary_version": "4.1.2-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
Ubuntu:20.04:LTS
libcoap2

Package

Name
libcoap2
Purl
pkg:deb/ubuntu/libcoap2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.2.0-2
4.2.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap2",
            "binary_version": "4.2.1-1"
        },
        {
            "binary_name": "libcoap2-bin",
            "binary_version": "4.2.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
Ubuntu:22.04:LTS
libcoap2

Package

Name
libcoap2
Purl
pkg:deb/ubuntu/libcoap2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.2.1-1
4.2.1-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap2",
            "binary_version": "4.2.1-1build1"
        },
        {
            "binary_name": "libcoap2-bin",
            "binary_version": "4.2.1-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
libcoap3

Package

Name
libcoap3
Purl
pkg:deb/ubuntu/libcoap3?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.3.0-2
4.3.0-2build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap3",
            "binary_version": "4.3.0-2build1"
        },
        {
            "binary_name": "libcoap3-bin",
            "binary_version": "4.3.0-2build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
Ubuntu:24.04:LTS
libcoap3

Package

Name
libcoap3
Purl
pkg:deb/ubuntu/libcoap3?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.3.1-2
4.3.3-1
4.3.4-1
4.3.4-1.1build2
4.3.4-1.1build3
4.3.4-1.1build4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap3-bin",
            "binary_version": "4.3.4-1.1build4"
        },
        {
            "binary_name": "libcoap3t64",
            "binary_version": "4.3.4-1.1build4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
Ubuntu:25.10
libcoap3

Package

Name
libcoap3
Purl
pkg:deb/ubuntu/libcoap3?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.3.4-1.1build4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap3-bin",
            "binary_version": "4.3.4-1.1build4"
        },
        {
            "binary_name": "libcoap3t64",
            "binary_version": "4.3.4-1.1build4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"
Ubuntu:26.04:LTS
libcoap3

Package

Name
libcoap3
Purl
pkg:deb/ubuntu/libcoap3?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.3.4-1.1build4
4.3.5-1
4.3.5-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcoap3-bin",
            "binary_version": "4.3.5-2"
        },
        {
            "binary_name": "libcoap3t64",
            "binary_version": "4.3.5-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50518.json"