CVE-2021-28904Unchecked Return Value in Libyang

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

Description

In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to 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

🔴Vulnerability Details

2
GHSA
GHSA-wqxj-4m27-ccp4: In function ext_get_plugin() in libyang <= v12022-05-24
OSV
CVE-2021-28904: In function ext_get_plugin() in libyang <= v12021-05-20

📋Vendor Advisories

2
Red Hat
libyang: NULL pointer dereference in ext_get_plugin()2021-03-07
Debian
CVE-2021-28904: libyang - In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether th...2021