libyang - Heap Use-After-Free Write in XML Metadata Parsing
CVE-2026-41401 is fixed in 3 products on 1 platform, first by libyang3 3.13.5-2ubuntu0.1, released May 26, 2026. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libyang · Debian 14 | 6.4.13-1 | DEBIAN-CVE-2026-41401 | May 26, 2026 |
| libyang · opensuse-leap 16.0 | 2.1.148-160000.4.1 | OPENSUSE-SU-2026:21113-1 | Jun 20, 2026 |
| libyang · sles 15.6 | 2.1.55-150500.3.5.1 | SUSE-SU-2026:2335-1 | Jun 10, 2026 |
| libyang · sles 15.7 | 2.1.148-150700.3.5.1 | SUSE-SU-2026:2337-1 | Jun 10, 2026 |
| libyang · sles 16.0 | 2.1.148-160000.4.1 | SUSE-SU-2026:22208-1 | Jun 20, 2026 |
| libyang3 · Ubuntu 25.10 (questing) | 3.13.5-2ubuntu0.1 | libyang3 3.13.5-2ubuntu0.1 | May 26, 2026 |
| libyang3 · Ubuntu 26.04.1 LTS (resolute) | 3.13.6-1ubuntu0.1 | libyang3 3.13.6-1ubuntu0.1 | May 26, 2026 |
| libyang3-tools · Ubuntu 25.10 (questing) | 3.13.5-2ubuntu0.1 | libyang3-tools 3.13.5-2ubuntu0.1 | May 26, 2026 |
| libyang3-tools · Ubuntu 26.04.1 LTS (resolute) | 3.13.6-1ubuntu0.1 | libyang3-tools 3.13.6-1ubuntu0.1 | May 26, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.