A stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "bits". This issue may allow an attacker to cause a denial of service or possibly gain code execution. The vulnerability is related to a buffer overflow in memory, which can be exploited by a remote attacker.