AZL-116170: CVE-2026-136906 affecting package libyang 2.1.148-3
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 realistically exposed to this issue?
Applications using libyang are exposed if they allow an attacker to supply files that are parsed through lyd_parse_data_path() or lys_parse_path(). The impact is denial of service when repeated submissions exhaust available file descriptors.
What does an attacker need to exploit it?
The attacker needs the ability to repeatedly provide empty files to a code path that parses them using lyd_parse_data_path() or lys_parse_path(). No other prerequisites are specified.
How can I tell whether a running service may already be affected?
Affected services may begin failing later file and socket operations after processing attacker-supplied empty files. The underlying condition is file descriptors left open when file mapping fails.