libyang through 6.4.13 Invalid Pointer Release via ly_in_memory()
- State
- Published
- Severity
- 8.2 High
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 25, 2026
Description
libyang through 6.4.13 contains a release of invalid pointer vulnerability in ly_in_memory() and ly_in_memory_chunk() in src/in.c that return the current read position instead of the previous start address. Attackers supplying YANG data parsed from a heap buffer can cause applications freeing the returned pointer to pass an interior address to free(), aborting the process.
| Product | Versions |
|---|---|
| libyang CESNET | 6.4.13 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.2 High | VulnCheck | |
| 3.1 | 5.9 Medium | VulnCheck |
Weaknesses
- CWE-761 Free of Pointer not at Start of Buffer
References
- https://github.com/CESNET/libyang/pull/2641Issue TrackerPatch
- https://github.com/CESNET/libyang/commit/76c8009e63e52a5557cfafd68fbe44c22d732c74Patch
- https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L214-L250Technical Details
- VulnCheck Advisory: libyang through 6.4.13 Invalid Pointer Release via ly_in_memory()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.