AZL-116167: CVE-2026-136905 affecting package libyang 2.1.148-3
CESNET libyang through 6.4.13 contains an incomplete cleanup vulnerability in lyoutreset() in src/out.c that tests a stale errno ESPIPE value after a successful seek. Applications reusing one output handler for different clients rewind but do not truncate the file, leaking leftover bytes of a previous client's output.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to cross-client data leakage?
Applications are exposed if they reuse a single libyang output handler for different clients and rewind the output file without truncating it. In that case, leftover bytes from a previous client's output can be included in later output.
What must occur for an attacker to obtain previous output data?
The attacker must be able to receive output generated after the application has reused the handler for another client. The prior output must have left trailing bytes because the file was rewound but not truncated.
What can be done if an updated libyang package cannot be deployed immediately?
Avoid reusing one output handler across different clients. Ensure output files are truncated after rewinding and before writing new client output.