Invalid Pointer Vulnerability in libyang Affected by Heap Buffer Manipulation
CVE-2026-136908
8.2HIGH
What is CVE-2026-136908?
libyang versions up to 6.4.13 exhibit a vulnerability in the functions ly_in_memory() and ly_in_memory_chunk() located in src/in.c. This issue stems from an incorrect pointer release, where the functions return the current read position instead of the correct starting address. Malicious actors can exploit this vulnerability by supplying crafted YANG data parsed from a heap buffer, leading applications to improperly free the returned pointer. This can result in passing an interior address to the free() function, potentially causing application crashes and instability.
Affected Version(s)
libyang 0 <= 6.4.13
