Affected versions
Ubuntu20.04:LTS/libyang
- Affected versions
- * || =0.16.105-1 || =0.16.105-2 || =0.16.105-3 || =0.16.105-3build1
- Fixed version
- Not reported
Ubuntu22.04:LTS/libyang
- Affected versions
- * || =1.0.225-1.1
- Fixed version
- Not reported
Ubuntu25.10/libyang
- Affected versions
- <3.13.5-2ubuntu0.1 || =3.7.8-3 || =3.12.2-1 || =3.12.2-1ubuntu1 || =3.13.5-2
- Fixed version
- 3.13.5-2ubuntu0.1
Ubuntu26.04:LTS/libyang
- Affected versions
- <3.13.6-1ubuntu0.1 || =3.13.5-2 || =3.13.6-1
- Fixed version
- 3.13.6-1ubuntu0.1
Description
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.
Links
- https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c
- https://github.com/CESNET/libyang/security/advisories/GHSA-9f49-8x56-jmjc
- https://red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E
- https://ubuntu.com/security/CVE-2026-41401
- https://ubuntu.com/security/notices/USN-8485-1
- https://www.cve.org/CVERecord?id=CVE-2026-41401
- https://www.vulncheck.com/advisories/libyang-heap-use-after-free-write-in-xml-metadata-parsing

