Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-136906: medium-severity vulnerability (CVSS 6.3) in CESNET libyang.
What happened
Original description from the source: libyang through 6.4.13 contains a file descriptor leak in ly_in_new_filepath() and ly_in_filepath() in src/in.c that fails to close descriptors when file mapping fails. Attackers who can supply files parsed through lyd_parse_data_path() or lys_parse_path() can repeatedly submit empty files to exhaust descriptors, causing later file and socket operations to fail.
Why it matters
Medium severity, CVSS 6.3.
Affected products and versions
CESNET libyang <= 6.4.13
| Product | Versions | Fixed in |
|---|---|---|
| CESNET libyang | <= 6.4.13 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/CESNET/libyang/issues/2598 — CVE Program
- https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0 — CVE Program
- https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L252-L279 — CVE Program
- https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316 — CVE Program
- https://www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath — CVE Program
Weaknesses (CWE): CWE-775
Relevant change history
Published
Preliminary advisory published.