CVE-2026-136906: libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()
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
Event History
Frequently Asked Questions
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.
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.
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.
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.