Every CVE Search/ Get API key

CVE-2021-28906

In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval-...

7.5 HighFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.57%Up 1.2 points since May 21, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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

Record
CVE-2021-28906
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-252
Updated
2026-11-02
CVE List No score

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

Record
CVE-2021-28906
Updated
2026-11-02
EUVDEUVD-2021-15559 No score

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

Record
EUVD-2021-15559
Updated
2026-11-03
GitHub AdvisoriesGHSA-gf49-5jg3-x68p 7.5

In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval-...

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

Record
GHSA-gf49-5jg3-x68p
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-252
Updated
2026-11-02
OSVALPINE-CVE-2021-28906 7.5

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

Record
ALPINE-CVE-2021-28906
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 7.5

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

Record
CVE-2021-28906
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-28906 7.5

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

Record
DEBIAN-CVE-2021-28906
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-28906 7.5

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

Record
UBUNTU-CVE-2021-28906
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVSUSE-SU-2022:3245-1 No score

Security update for libyang

This update for libyang fixes the following issues:

  • CVE-2021-28906: Fixed missing check in read_yin_leaf that can lead to DoS (bsc#1186378)
  • CVE-2021-28904: Fixed missing check in ext_get_plugin that lead to DoS (bsc#1186376).
  • CVE-2021-28903: Fixed stack overflow in lyxml_parse_mem (bsc#1186375).
  • CVE-2021-28902: Fixed missing check in read_yin_container that can lead to DoS (bsc#1186374).
Record
SUSE-SU-2022:3245-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libyang
Alpine:v3.13
before 1.0.184-r1
1.0.184-r1
libyang
Alpine:v3.14
before 1.0.215-r1
1.0.215-r1
libyang
Debian:13
before 3.4.2+dfsg-2
3.4.2+dfsg-2
libyang
Debian:14
before 3.4.2+dfsg-2
3.4.2+dfsg-2
libyang
SUSE:Linux Enterprise Module for Server Applications 15 SP3
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
SUSE:Linux Enterprise Module for Server Applications 15 SP4
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
openSUSE:Leap 15.3
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
openSUSE:Leap 15.4
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
Ubuntu:20.04:LTS
All versions, plus listed versions
0.16.105-10.16.105-20.16.105-30.16.105-3build1
None known
libyang
Ubuntu:22.04:LTS
All versions, plus listed versions
1.0.225-1.1
None known

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-28906 is a high vulnerability (CVSS 7.5) in Cesnet Libyang, published May 20, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.57%, the 75th percentile. Fixed in libyang 1.0.184-r1.

References

Show 11 moreShow less
MoveEnter Open