CVE-2026-136906: libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()

Published Nov 25, 2026
·
Updated

libyang through 6.4.13 contains a file descriptor leak in lyinnewfilepath() and lyinfilepath() in src/in.c that fails to close descriptors when file mapping fails. Attackers who can supply files parsed through lydparsedatapath() or lysparsepath() can repeatedly submit empty files to exhaust descriptors, causing later file and socket operations to fail.

Affected Software

1 affected component
CESNET libyang<=6.4.13

Event History

Nov 25, 2026
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using affected libyang versions are exposed if they allow an attacker to supply files that are parsed through lyd_parse_data_path() or lys_parse_path(). The issue is relevant where those parsing paths can be invoked repeatedly with attacker-controlled empty files.

2

What does an attacker need to do to exploit it?

The attacker needs the ability to submit files for parsing through lyd_parse_data_path() or lys_parse_path(). Repeatedly submitting empty files can trigger failed file mapping and leak a file descriptor for each attempt.

3

What is the operational impact?

Exhausted file descriptors can cause subsequent file and socket operations in the affected process to fail. The provided vector indicates availability impact only, with no confidentiality or integrity impact.

4

How can I tell whether my application is being affected?

Look for applications using libyang through 6.4.13 that call lyd_parse_data_path() or lys_parse_path() on supplied files, especially empty files. A rising open-descriptor count during repeated parsing failures is consistent with this issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203