CVE-2021-28906: High severity CESNET libyang vulnerability
In function readyinleaf() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/libyangto a version that resolves this vulnerability.Fixed in 1.0.184-r1 - Upgrade
Upgrade
alpine/libyangto a version that resolves this vulnerability.Fixed in 1.0.215-r1
Event History
Frequently Asked Questions
What is the severity of CVE-2021-28906?
CVE-2021-28906 has been assigned a medium severity rating due to the potential for application crashes.
How do I fix CVE-2021-28906?
To fix CVE-2021-28906, upgrade libyang to version 1.0.226 or later, which contains the necessary security patches.
What software is affected by CVE-2021-28906?
CVE-2021-28906 affects libyang versions up to and including 1.0.225.
What are the potential consequences of CVE-2021-28906?
The consequences of CVE-2021-28906 include application crashes that can disrupt service continuity.
Is CVE-2021-28906 exploitable remotely?
CVE-2021-28906 may be exploitable remotely depending on how libyang is integrated into applications exposed to untrusted input.