Out-of-bounds read in libyang - #VU163172

 

Out-of-bounds read in libyang - #VU163172

Published: November 9, 2026


Vulnerability identifier: #VU163172
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an attacker to crash applications that compile attacker-controlled YANG schemas with libyang, causing denial of service.

The vulnerability exists due to an unchecked scan length in ly_strnchr() during schema compilation when a leafref path expression begins with whitespace. An attacker can supply a crafted schema with excessive leading whitespace to control how far the scan reads beyond a heap buffer, potentially reaching unmapped memory and crashing the application.


Affected software

libyang

Remediation

Install security update from vendor's website.

libyang - update to 5.8.6

External References

Related Security Bulletins