CVE-2021-28906Unchecked Return Value in Libyang

Severity
7.5HIGHNVD
EPSS
0.4%
top 41.35%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 20
Latest updateMay 24

Description

In function read_yin_leaf() in libyang 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages4 packages

debiandebian/libyang< libyang 3.4.2+dfsg-2 (forky)
debiandebian/libyang2< libyang 3.4.2+dfsg-2 (forky)
Debiancesnet/libyang< 3.4.2+dfsg-2+1
NVDcesnet/libyang1.0.225

Patches

🔴Vulnerability Details

2
GHSA
GHSA-gf49-5jg3-x68p: In function read_yin_leaf() in libyang ext[r] is NULL2022-05-24
OSV
CVE-2021-28906: In function read_yin_leaf() in libyang ext[r] is NULL2021-05-20

📋Vendor Advisories

2
Red Hat
libyang: NULL pointer dereference in read_yin_leaf()2021-03-08
Debian
CVE-2021-28906: libyang - In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the...2021