libyang through 6.4.13 Incomplete Cleanup in ly_out_reset()
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 25, 2026
Description
CESNET libyang through 6.4.13 contains an incomplete cleanup vulnerability in ly_out_reset() 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.
| Product | Versions |
|---|---|
| libyang CESNET | 6.4.13 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 3.7 Low | VulnCheck |
Weaknesses
- CWE-459 Incomplete Cleanup
References
- https://github.com/CESNET/libyang/pull/2644Issue TrackerPatch
- https://github.com/CESNET/libyang/commit/98a4d748f5b744cc9011bb8ade972d69167ed17ePatch
- https://github.com/CESNET/libyang/blob/v6.4.13/src/out.c#L298-L342Technical Details
- VulnCheck Advisory: libyang through 6.4.13 Incomplete Cleanup in ly_out_reset()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.