
CVE catalog
CVE-2026-41401
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. Att
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.67% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libyang2 | bookworm | 2.1.30-2 | vulnerable |
| Cpe | libyang2 | Not reported | Not reported | vulnerable |
| Ubuntu | libyang | 25.10 | 3.7.8-3 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.12.2-1 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.12.2-1ubuntu1 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.13.5-2 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.13.5-2ubuntu0.1 | fixed |
| Ubuntu | libyang | 26.04 | 3.13.5-2 | vulnerable |
| Ubuntu | libyang | 26.04 | 3.13.6-1 | vulnerable |
| Ubuntu | libyang | 26.04 | 3.13.6-1ubuntu0.1 | fixed |
| Opensuse | libyang | leap 16.0 | 2.1.148-160000.4.1 | fixed |
| Ubuntu | libyang | 20.04 | 0.16.105-1 | vulnerable |
| Ubuntu | libyang | 20.04 | 0.16.105-2 | vulnerable |
| Ubuntu | libyang | 20.04 | 0.16.105-3 | vulnerable |
| Ubuntu | libyang | 20.04 | 0.16.105-3build1 | vulnerable |
| Ubuntu | libyang | 22.04 | 1.0.225-1.1 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.7.8-3 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.12.2-1 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.12.2-1ubuntu1 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.13.5-2 | vulnerable |
| Ubuntu | libyang | 25.10 | 3.13.5-2ubuntu0.1 | fixed |
| Ubuntu | libyang | 26.04 | 3.13.5-2 | vulnerable |
| Ubuntu | libyang | 26.04 | 3.13.6-1 | vulnerable |
| Ubuntu | libyang | 26.04 | 3.13.6-1ubuntu0.1 | fixed |
| Suse | libyang | linux enterprise server 16.0 | 2.1.148-160000.4.1 | fixed |
| Suse | libyang | linux enterprise server for sap applications 16.0 | 2.1.148-160000.4.1 | fixed |
| Suse | libyang | linux enterprise server 16.0 | 2.1.148-160000.4.1 | fixed |
| Suse | libyang | linux enterprise server for sap applications 16.0 | 2.1.148-160000.4.1 | fixed |
| Suse | libyang | linux enterprise module for server applications 15 sp7 | 2.1.148-150700.3.5.1 | fixed |
| Suse | libyang | linux enterprise server 12 sp5-ltss | 2.1.148-8.8.1 | fixed |
| Suse | libyang | linux enterprise server ltss extended security 12 sp5 | 2.1.148-8.8.1 | fixed |
| Suse | libyang | linux enterprise high performance computing 15 sp5-espos | 2.1.55-150500.3.5.1 | fixed |
| Suse | libyang | linux enterprise high performance computing 15 sp5-ltss | 2.1.55-150500.3.5.1 | fixed |
| Suse | libyang | linux enterprise server 15 sp5-ltss | 2.1.55-150500.3.5.1 | fixed |
| Suse | libyang | linux enterprise server 15 sp6-ltss | 2.1.55-150500.3.5.1 | fixed |
| Suse | libyang | linux enterprise server for sap applications 15 sp5 | 2.1.55-150500.3.5.1 | fixed |
| Suse | libyang | linux enterprise server for sap applications 15 sp6 | 2.1.55-150500.3.5.1 | fixed |
| Opensuse | libyang | tumbleweed | 3.13.6-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libyang2 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Ubuntu | libyang | deb | 25.10 | 3.13.5-2ubuntu0.1 | Not reported | USN-8485-1 | Not reported |
| Ubuntu | libyang | deb | 26.04 | 3.13.6-1ubuntu0.1 | Not reported | USN-8485-1 | Not reported |
| Opensuse | libyang | rpm | leap 16.0 | 2.1.148-160000.4.1 | Not reported | OPENSUSE-SU-2026:21113-1 | Not reported |
| Ubuntu | libyang | deb | 25.10 | 3.13.5-2ubuntu0.1 | Not reported | UBUNTU-CVE-2026-41401 | Not reported |
| Ubuntu | libyang | deb | 26.04 | 3.13.6-1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-41401 | Not reported |
| Suse | libyang | rpm | linux enterprise server 16.0 | 2.1.148-160000.4.1 | Not reported | SUSE-SU-2026:22200-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server for sap applications 16.0 | 2.1.148-160000.4.1 | Not reported | SUSE-SU-2026:22200-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server 16.0 | 2.1.148-160000.4.1 | Not reported | SUSE-SU-2026:22208-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server for sap applications 16.0 | 2.1.148-160000.4.1 | Not reported | SUSE-SU-2026:22208-1 | Not reported |
| Suse | libyang | rpm | linux enterprise module for server applications 15 sp7 | 2.1.148-150700.3.5.1 | Not reported | SUSE-SU-2026:2337-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server 12 sp5-ltss | 2.1.148-8.8.1 | Not reported | SUSE-SU-2026:2334-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server ltss extended security 12 sp5 | 2.1.148-8.8.1 | Not reported | SUSE-SU-2026:2334-1 | Not reported |
| Suse | libyang | rpm | linux enterprise high performance computing 15 sp5-espos | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Suse | libyang | rpm | linux enterprise high performance computing 15 sp5-ltss | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server 15 sp5-ltss | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server 15 sp6-ltss | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server for sap applications 15 sp5 | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Suse | libyang | rpm | linux enterprise server for sap applications 15 sp6 | 2.1.55-150500.3.5.1 | Not reported | SUSE-SU-2026:2335-1 | Not reported |
| Opensuse | libyang | rpm | tumbleweed | 3.13.6-2.1 | Not reported | OPENSUSE-SU-2026:10868-1 | Not reported |
Notes
[bookworm] libyang2: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libyang2]Affected
Details (2)
2.1.30-2· amd64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
2.1.30-2· arm64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
- [libyang2-dev]Affected
Source package: [libyang2]
Details (2)
2.1.30-2· amd64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
2.1.30-2· arm64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
- [libyang2-tools]Affected
Source package: [libyang2]
Details (2)
2.1.30-2· amd64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
2.1.30-2· arm64 · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
- [libyang-tools]Affected
Source package: [libyang2]
Details (2)
2.1.30-2· all · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
2.1.30-2· all · bookwormAffected
nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12
[Debian 13 (Trixie)]
- [libyang3]Affected
Source package: [libyang]
Details (4)
3.12.2-1· amd64 · trixieAffected
nvd · libyang · debian · 13
3.12.2-1· arm64 · trixieAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· amd64 · trixie-backportsAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· arm64 · trixie-backportsAffected
nvd · libyang · debian · 13
- [libyang3-tools]Affected
Source package: [libyang]
Details (4)
3.12.2-1· amd64 · trixieAffected
nvd · libyang · debian · 13
3.12.2-1· arm64 · trixieAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· amd64 · trixie-backportsAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· arm64 · trixie-backportsAffected
nvd · libyang · debian · 13
- [libyang-dev]Affected
Source package: [libyang]
Details (4)
3.12.2-1· amd64 · trixieAffected
nvd · libyang · debian · 13
3.12.2-1· arm64 · trixieAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· amd64 · trixie-backportsAffected
nvd · libyang · debian · 13
3.13.6-1~bpo13+1· arm64 · trixie-backportsAffected
nvd · libyang · debian · 13
[openSUSE Tumbleweed]
- [libyang3]Unknown
Source package: [libyang]
Details (1)
3.13.6-3.3· x86_64 · tumbleweedUnknown · Fixed:
3.13.6-2.1Version impact unknown
nvd · libyang · opensuse · tumbleweed
- [libyang-devel]Unknown
Source package: [libyang]
Details (1)
3.13.6-3.3· x86_64 · tumbleweedUnknown · Fixed:
3.13.6-2.1Version impact unknown
nvd · libyang · opensuse · tumbleweed
- [libyang-doc]Unknown
Source package: [libyang]
Details (1)
3.13.6-3.3· noarch · tumbleweedUnknown · Fixed:
3.13.6-2.1Version impact unknown
nvd · libyang · opensuse · tumbleweed
- [yang-tools]Unknown
Source package: [libyang]
Details (1)
3.13.6-3.3· x86_64 · tumbleweedUnknown · Fixed:
3.13.6-2.1Version impact unknown
nvd · libyang · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10868-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-41401]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-41401]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22200-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22208-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2334-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2335-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2337-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-41401]
- [https://osv.dev/vulnerability/USN-8485-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10868-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21113-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-41401]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41401.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]