UBUNTU-CVE-2026-41401

Source
https://ubuntu.com/security/CVE-2026-41401
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41401.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-41401
Upstream
Downstream
Related
Published
2026-05-26T15:16:00Z
Modified
2026-06-30T18:18:04Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

libyang before 5.2.6 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.

References

Affected packages

Ubuntu:20.04:LTS / libyang

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown 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_name": "libyang-cpp0.16",
            "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",
            "binary_version": "0.16.105-3build1"
        }
    ]
}

Database specific

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

Ubuntu:22.04:LTS / libyang

Package

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

Affected ranges

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

Affected versions

1.*
1.0.225-1.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libyang-cpp1",
            "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",
            "binary_version": "1.0.225-1.1"
        }
    ]
}

Database specific

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

Ubuntu:25.10 / libyang

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.13.5-2ubuntu0.1

Affected versions

3.*
3.7.8-3
3.12.2-1
3.12.2-1ubuntu1
3.13.5-2

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "libyang3",
            "binary_version": "3.13.5-2ubuntu0.1"
        },
        {
            "binary_name": "libyang3-tools",
            "binary_version": "3.13.5-2ubuntu0.1"
        }
    ]
}

Database specific

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

Ubuntu:26.04:LTS / libyang

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.13.6-1ubuntu0.1

Affected versions

3.*
3.13.5-2
3.13.6-1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "libyang3",
            "binary_version": "3.13.6-1ubuntu0.1"
        },
        {
            "binary_name": "libyang3-tools",
            "binary_version": "3.13.6-1ubuntu0.1"
        }
    ]
}

Database specific

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