CVE Vulnerabilities

CVE-2021-28903

Uncontrolled Recursion

Published: May 20, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem(). lyxml_parse_elem() function will be called recursively, which will consume stack space and lead to crash.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

NameVendorStart VersionEnd Version
LibyangCesnet*1.0.225 (including)
LibyangUbuntuesm-apps/focal*
LibyangUbuntuesm-apps/jammy*
LibyangUbuntufocal*
LibyangUbuntugroovy*
LibyangUbuntuhirsute*
LibyangUbuntuimpish*
LibyangUbuntujammy*
LibyangUbuntukinetic*
LibyangUbuntutrusty*
LibyangUbuntuupstream*
LibyangUbuntuxenial*

Potential Mitigations

References