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.
https://www.vulncheck.com/advisories/libyang-through-6.4.13-invalid-pointer-release-via-ly-in-memory
https://github.com/CESNET/libyang/pull/2641
https://github.com/CESNET/libyang/commit/76c8009e63e52a5557cfafd68fbe44c22d732c74
https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L214-L250
Published: 2026-11-25
Updated: 2026-11-25
Base Score: 5
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P
Severity: Medium
Base Score: 5.9
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: Medium
Base Score: 8.2
Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.00874