Skip to content

CVE-2021-28902 In function read_yin_container() in libyang <= v1.0.225, it doesn't 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]->fl...

HighCVSS 7.5 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

In function read_yin_container() in libyang <= v1.0.225, it doesn't 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.

Upgrade path

7 packages: 5 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/libyang(Ubuntu 20.04) = 0.16.105-1; = 0.16.105-2; = 0.16.105-3; = 0.16.105-3build1 +1 more No fix listed No fix yet
ubuntu/libyang(Ubuntu 22.04) = 1.0.225-1.1; All versions No fix listed No fix yet
alpine/libyang(Alpine v3.13) < 1.0.184-r1 1.0.184-r1 Fixed
alpine/libyang(Alpine v3.14) < 1.0.215-r1 1.0.215-r1 Fixed
cesnet libyang <= 1.0.225 after 1.0.225 Fixed
debian/libyang(Debian 13) < 3.4.2+dfsg-2 3.4.2+dfsg-2 Fixed
debian/libyang(Debian 14) < 3.4.2+dfsg-2 3.4.2+dfsg-2 Fixed

Affected products

ProductAffected versionsFixed in
debian/libyang(Debian:13) < 3.4.2+dfsg-2 3.4.2+dfsg-2
debian/libyang(Debian:14) < 3.4.2+dfsg-2 3.4.2+dfsg-2
ubuntu/libyang(Ubuntu:22.04) All versions No fix listed
cesnet libyang <= 1.0.225 No fix listed
alpine/libyang(Alpine:v3.13) < 1.0.184-r1 1.0.184-r1
alpine/libyang(Alpine:v3.14) < 1.0.215-r1 1.0.215-r1
ubuntu/libyang(Ubuntu:20.04) All versions No fix listed
ubuntu/libyang(Ubuntu:20.04) = 0.16.105-1 No fix listed
ubuntu/libyang(Ubuntu:20.04) = 0.16.105-2 No fix listed
ubuntu/libyang(Ubuntu:20.04) = 0.16.105-3 No fix listed
ubuntu/libyang(Ubuntu:20.04) = 0.16.105-3build1 No fix listed
ubuntu/libyang(Ubuntu:22.04) = 1.0.225-1.1 No fix listed

References