AZL-116176: CVE-2026-136908 affecting package libyang 2.1.148-3
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
Who is exposed to this issue?
Applications using affected libyang versions are exposed if they parse attacker-supplied YANG data from a heap buffer through ly_in_memory() or ly_in_memory_chunk() and later free the returned pointer.
What does an attacker need to 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 pointer returned by the affected parsing functions.
What is the likely impact?
Freeing the returned interior pointer can cause free() to abort the process, resulting in a denial of service.