# CVE-2026-136906: libyang through 6.4.13 File Descriptor Leak via ly\_in\_new\_filepath()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-25 · Modified: 2026-11-30
- Aliases: UBUNTU-CVE-2026-136906
- Record: https://cvemate.com/vulnerability/CVE-2026-136906 · JSON: https://cvemate.com/vulnerability/CVE-2026-136906/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.871%, percentile 60.07%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cesnet libyang: ≤ 6.4.13
- ubuntu libyang (Ubuntu): All versions (No fix recorded)
- ubuntu libyang2 (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/CESNET/libyang/issues/2598>
- <https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0>
- <https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L252-L279>
- <https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316>
- <https://www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath>
- <https://ubuntu.com/security/CVE-2026-136906>
- <https://www.cve.org/CVERecord?id=CVE-2026-136906>

---

Data as of 2026-12-05T03:45:10.410Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
