Use-after-free in libyang - #VU163177
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unprivileged local attacker to crash applications that parse untrusted YANG schemas with libyang, causing denial of service.
The vulnerability exists due to a heap use-after-free in extension-instance path construction when parsing a YANG type containing multiple pattern statements. An unprivileged local attacker can supply a crafted schema and induce a victim to parse it through lys_parse_mem() or lys_parse(), triggering a freed-memory read and application crash.