UBUNTU-CVE-2021-28903

Source
https://ubuntu.com/security/CVE-2021-28903
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-28903.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-28903
Upstream
Published
2021-05-20T19:15:00Z
Modified
2025-09-08T16:47:04Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - low
Summary
[none]
Details

A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxmlparsemem(). lyxmlparseelem() function will be called recursively, which will consume stack space and lead to crash.

References

Affected packages

Ubuntu:Pro:20.04:LTS / libyang

Package

Name
libyang
Purl
pkg:deb/ubuntu/libyang@0.16.105-3build1?arch=source&distro=esm-apps/focal

Affected ranges

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

Affected versions

0.*

0.16.105-1
0.16.105-2
0.16.105-3
0.16.105-3build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "libyang-cpp-dev"
        },
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "libyang-cpp0.16"
        },
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "libyang-dev"
        },
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "libyang0.16"
        },
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "python3-yang"
        },
        {
            "binary_version": "0.16.105-3build1",
            "binary_name": "yang-tools"
        }
    ]
}

Ubuntu:22.04:LTS / libyang

Package

Name
libyang
Purl
pkg:deb/ubuntu/libyang@1.0.225-1.1?arch=source&distro=jammy

Affected ranges

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

Affected versions

1.*

1.0.225-1.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "libyang-cpp-dev"
        },
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "libyang-cpp1"
        },
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "libyang-dev"
        },
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "libyang-tools"
        },
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "libyang1"
        },
        {
            "binary_version": "1.0.225-1.1",
            "binary_name": "yang-tools"
        }
    ]
}