CVE Vulnerabilities

CVE-2021-28902

Unchecked Return Value

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

In function read_yin_container() in libyang <= v1.0.225, it doesnt check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash.

Weakness

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

Affected Software

Name Vendor Start Version End Version
Libyang Cesnet * 1.0.225 (including)
Libyang Ubuntu esm-apps/focal *
Libyang Ubuntu esm-apps/jammy *
Libyang Ubuntu focal *
Libyang Ubuntu groovy *
Libyang Ubuntu hirsute *
Libyang Ubuntu impish *
Libyang Ubuntu jammy *
Libyang Ubuntu kinetic *
Libyang Ubuntu trusty *
Libyang Ubuntu upstream *
Libyang Ubuntu xenial *

Potential Mitigations

References