cve.bz

CVE-2026-41401 libyang libyang: Use After Free

7.1 highEPSS 0.7%

High (7.1) in libyang libyang. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.1 high
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 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-05-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41401 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41401?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41401?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41401 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libyangbefore 5.4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libyang2no fix listedDEBIAN-CVE-2026-41401
Debian13libyangno fix listedDEBIAN-CVE-2026-41401
Debian14libyang6.4.13-1DEBIAN-CVE-2026-41401
Ubuntu20.04:LTS, 22.04:LTSlibyangno fix listedUBUNTU-CVE-2026-41401
Ubuntu25.10libyang3.13.5-2ubuntu0.1UBUNTU-CVE-2026-41401 USN-8485-1
Ubuntu26.04:LTSlibyang3.13.6-1ubuntu0.1UBUNTU-CVE-2026-41401 USN-8485-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 3 morelibyang2.1.55-150500.3.5.1SUSE-SU-2026:2335-1
SUSELinux Enterprise Module for Server Applications 15 SP7libyang2.1.148-150700.3.5.1SUSE-SU-2026:2337-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libyang2.1.148-8.8.1SUSE-SU-2026:2334-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libyang2.1.148-160000.4.1SUSE-SU-2026:22200-1 SUSE-SU-2026:22208-1
openSUSELeap 16.0libyang2.1.148-160000.4.1openSUSE-SU-2026:21113-1
openSUSETumbleweedlibyang3.13.6-2.1openSUSE-SU-2026:10868-1
Azure Linux3libyang2.1.148-3AZL-87354

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability affects applications using libyang to process XML-encoded YANG data. Red Hat Product Security has assessed this issue as a Moderate severity vulnerability.

An authenticated attacker may supply specially crafted YANG/XML input that triggers a heap use-after-free condition during metadata parsing operations, resulting in application crashes and denial of service.

Although the vulnerability involves heap memory corruption, the current analysis and reproductions demonstrate denial-of-service impact through application crashes rather than reliable arbitrary code execution. Red Hat therefore assessed the impact as limited to Availability (A:H).

Because exploitation generally requires the ability to submit or process crafted YANG configuration data, Red Hat assessed Privileges Required as Low (PR:L).

Red Hat's mitigation

Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libyangFix deferred
Red Hat Enterprise Linux 8libyangFix deferred
Red Hat Enterprise Linux 9libyangFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41401.

References

Check your stackJSON