CVE-2021-28905: High severity CESNET libyang vulnerability
In function lysnodefree() in libyang <= v1.0.225, it asserts that the value of node->module can't be NULL. But in some cases, node->module can be null, which triggers a reachable assertion (CWE-617).
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-28905?
CVE-2021-28905 is rated as a high severity vulnerability due to its potential to trigger assertion failures.
How do I fix CVE-2021-28905?
To fix CVE-2021-28905, upgrade to libyang version 1.0.226 or later.
What software is affected by CVE-2021-28905?
CVE-2021-28905 affects libyang versions up to and including 1.0.225.
What could be the impact of exploiting CVE-2021-28905?
Exploiting CVE-2021-28905 can result in application crashes due to assertion failures.
Is CVE-2021-28905 a remote or local vulnerability?
CVE-2021-28905 is primarily a local vulnerability since it affects the internals of the libyang library.