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

[CVE catalog]

Severity
High · CVSS 8.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibyang2bookworm2.1.30-2vulnerable
Cpelibyang2Not reportedNot reportedvulnerable
Ubuntulibyang25.103.7.8-3vulnerable
Ubuntulibyang25.103.12.2-1vulnerable
Ubuntulibyang25.103.12.2-1ubuntu1vulnerable
Ubuntulibyang25.103.13.5-2vulnerable
Ubuntulibyang25.103.13.5-2ubuntu0.1fixed
Ubuntulibyang26.043.13.5-2vulnerable
Ubuntulibyang26.043.13.6-1vulnerable
Ubuntulibyang26.043.13.6-1ubuntu0.1fixed
Opensuselibyangleap 16.02.1.148-160000.4.1fixed
Ubuntulibyang20.040.16.105-1vulnerable
Ubuntulibyang20.040.16.105-2vulnerable
Ubuntulibyang20.040.16.105-3vulnerable
Ubuntulibyang20.040.16.105-3build1vulnerable
Ubuntulibyang22.041.0.225-1.1vulnerable
Ubuntulibyang25.103.7.8-3vulnerable
Ubuntulibyang25.103.12.2-1vulnerable
Ubuntulibyang25.103.12.2-1ubuntu1vulnerable
Ubuntulibyang25.103.13.5-2vulnerable
Ubuntulibyang25.103.13.5-2ubuntu0.1fixed
Ubuntulibyang26.043.13.5-2vulnerable
Ubuntulibyang26.043.13.6-1vulnerable
Ubuntulibyang26.043.13.6-1ubuntu0.1fixed
Suselibyanglinux enterprise server 16.02.1.148-160000.4.1fixed
Suselibyanglinux enterprise server for sap applications 16.02.1.148-160000.4.1fixed
Suselibyanglinux enterprise server 16.02.1.148-160000.4.1fixed
Suselibyanglinux enterprise server for sap applications 16.02.1.148-160000.4.1fixed
Suselibyanglinux enterprise module for server applications 15 sp72.1.148-150700.3.5.1fixed
Suselibyanglinux enterprise server 12 sp5-ltss2.1.148-8.8.1fixed
Suselibyanglinux enterprise server ltss extended security 12 sp52.1.148-8.8.1fixed
Suselibyanglinux enterprise high performance computing 15 sp5-espos2.1.55-150500.3.5.1fixed
Suselibyanglinux enterprise high performance computing 15 sp5-ltss2.1.55-150500.3.5.1fixed
Suselibyanglinux enterprise server 15 sp5-ltss2.1.55-150500.3.5.1fixed
Suselibyanglinux enterprise server 15 sp6-ltss2.1.55-150500.3.5.1fixed
Suselibyanglinux enterprise server for sap applications 15 sp52.1.55-150500.3.5.1fixed
Suselibyanglinux enterprise server for sap applications 15 sp62.1.55-150500.3.5.1fixed
Opensuselibyangtumbleweed3.13.6-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibyang2sourcebookworm(unfixed)not yet assignedNot reportedNot reported
Ubuntulibyangdeb25.103.13.5-2ubuntu0.1Not reportedUSN-8485-1Not reported
Ubuntulibyangdeb26.043.13.6-1ubuntu0.1Not reportedUSN-8485-1Not reported
Opensuselibyangrpmleap 16.02.1.148-160000.4.1Not reportedOPENSUSE-SU-2026:21113-1Not reported
Ubuntulibyangdeb25.103.13.5-2ubuntu0.1Not reportedUBUNTU-CVE-2026-41401Not reported
Ubuntulibyangdeb26.043.13.6-1ubuntu0.1Not reportedUBUNTU-CVE-2026-41401Not reported
Suselibyangrpmlinux enterprise server 16.02.1.148-160000.4.1Not reportedSUSE-SU-2026:22200-1Not reported
Suselibyangrpmlinux enterprise server for sap applications 16.02.1.148-160000.4.1Not reportedSUSE-SU-2026:22200-1Not reported
Suselibyangrpmlinux enterprise server 16.02.1.148-160000.4.1Not reportedSUSE-SU-2026:22208-1Not reported
Suselibyangrpmlinux enterprise server for sap applications 16.02.1.148-160000.4.1Not reportedSUSE-SU-2026:22208-1Not reported
Suselibyangrpmlinux enterprise module for server applications 15 sp72.1.148-150700.3.5.1Not reportedSUSE-SU-2026:2337-1Not reported
Suselibyangrpmlinux enterprise server 12 sp5-ltss2.1.148-8.8.1Not reportedSUSE-SU-2026:2334-1Not reported
Suselibyangrpmlinux enterprise server ltss extended security 12 sp52.1.148-8.8.1Not reportedSUSE-SU-2026:2334-1Not reported
Suselibyangrpmlinux enterprise high performance computing 15 sp5-espos2.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Suselibyangrpmlinux enterprise high performance computing 15 sp5-ltss2.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Suselibyangrpmlinux enterprise server 15 sp5-ltss2.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Suselibyangrpmlinux enterprise server 15 sp6-ltss2.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Suselibyangrpmlinux enterprise server for sap applications 15 sp52.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Suselibyangrpmlinux enterprise server for sap applications 15 sp62.1.55-150500.3.5.1Not reportedSUSE-SU-2026:2335-1Not reported
Opensuselibyangrpmtumbleweed3.13.6-2.1Not reportedOPENSUSE-SU-2026:10868-1Not reported

Notes

[bookworm] libyang2: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libyang2]Affected
    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

    • 2.1.30-2 · arm64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

  • [libyang2-dev]Affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

    • 2.1.30-2 · arm64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

  • [libyang2-tools]Affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

    • 2.1.30-2 · arm64 · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

  • [libyang-tools]Affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · all · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

    • 2.1.30-2 · all · bookworm

      Affected

      nvd · libyang2 · debian · bookworm; nvd · libyang2 · debian · 12

[Debian 13 (Trixie)]

  • [libyang3]Affected

    Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

  • [libyang3-tools]Affected

    Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

  • [libyang-dev]Affected

    Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Affected

      nvd · libyang · debian · 13

[openSUSE Tumbleweed]

  • [libyang3]Unknown

    Source package: [libyang]

    Details (1)
    • 3.13.6-3.3 · x86_64 · tumbleweed

      Unknown · Fixed: 3.13.6-2.1

      Version impact unknown

      nvd · libyang · opensuse · tumbleweed

  • [libyang-devel]Unknown

    Source package: [libyang]

    Details (1)
    • 3.13.6-3.3 · x86_64 · tumbleweed

      Unknown · Fixed: 3.13.6-2.1

      Version impact unknown

      nvd · libyang · opensuse · tumbleweed

  • [libyang-doc]Unknown

    Source package: [libyang]

    Details (1)
    • 3.13.6-3.3 · noarch · tumbleweed

      Unknown · Fixed: 3.13.6-2.1

      Version impact unknown

      nvd · libyang · opensuse · tumbleweed

  • [yang-tools]Unknown

    Source package: [libyang]

    Details (1)
    • 3.13.6-3.3 · x86_64 · tumbleweed

      Unknown · Fixed: 3.13.6-2.1

      Version impact unknown

      nvd · libyang · opensuse · tumbleweed

Observed:

References