Use After Free Affecting libyang-devel package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.67% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-LIBYANGDEVEL-17174049
  • published5 Jun 2026
  • disclosed26 May 2026

Introduced: 26 May 2026

CVE-2026-41401  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 libyang-devel.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libyang-devel package and not the libyang-devel package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1