CVE-2026-136908: libyang through 6.4.13 Invalid Pointer Release via ly_in_memory()
libyang through 6.4.13 contains a release of invalid pointer vulnerability in lyinmemory() and lyinmemorychunk() 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.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using affected libyang versions are exposed when they parse attacker-supplied YANG data from a heap buffer and later free the pointer returned by ly_in_memory() or ly_in_memory_chunk().
What must an attacker do to trigger the failure?
The attacker must be able to supply YANG data that the application parses from a heap buffer. Exploitation depends on the application freeing the returned pointer, which can pass an interior address to free() and abort the process.
What is the expected impact?
The described outcome is process termination due to an invalid free, resulting in denial of service. No confidentiality or integrity impact is stated.
How can I determine whether my application is affected?
Review calls to ly_in_memory() and ly_in_memory_chunk() and determine whether their returned pointers are later freed. The affected case specifically involves parsing YANG data from heap-backed buffers.