CVEfocus › CVE database › CVE-2026-41401

CVE-2026-41401libyang - Heap Use-After-Free Write in XML Metadata Parsing

CVSS 6.5 MediumEPSS 0.6% (higher than 45% of CVEs)Published 2026-05-26Updated 2026-11-08Assigner: VulnCheck

libyang before 5.4.3 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.

CWE-416

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
10Fix pending
1Under investigation
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libyangFixed3.13.6-1ubuntu0.1UBUNTU-CVE-2026-41401
Ubuntu 25.10libyangFixed3.13.5-2ubuntu0.1UBUNTU-CVE-2026-41401
Ubuntu 24.04libyang2Not affected
vulnerable_code_not_present
Ubuntu 22.04libyangUnder investigationUBUNTU-CVE-2026-41401
Ubuntu 22.04libyang2Not affected
vulnerable_code_not_present
Ubuntu 20.04libyangFix pendingUBUNTU-CVE-2026-41401
Debian 14libyangFixed6.4.13-1DEBIAN-CVE-2026-41401
Debian 13libyangFix pendingDEBIAN-CVE-2026-41401
Debian 12libyang2Fix pendingDEBIAN-CVE-2026-41401
Red Hat Enterprise Linux 10libyangFix pending
Fix deferred
Red Hat Enterprise Linux 10libyang-develFix pending
Fix deferred
Red Hat Enterprise Linux 10libyang-devel-docFix pending
Fix deferred
Red Hat Enterprise Linux 9libyangFix pending
Fix deferred
Red Hat Enterprise Linux 9libyang-develFix pending
Fix deferred
Red Hat Enterprise Linux 9libyang-devel-docFix pending
Fix deferred
Red Hat Enterprise Linux 8libyangFix pending
Fix deferred

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.