Reachable Assertion Affecting libyang package, versions <1.0.184-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.42% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE313-LIBYANG-1298167
  • published1 Jun 2021
  • disclosed20 May 2021

Introduced: 20 May 2021

CVE-2021-28905  (opens in a new tab)
CWE-617  (opens in a new tab)

How to fix?

Upgrade Alpine:3.13 libyang to version 1.0.184-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libyang package and not the libyang package as distributed by Alpine. See How to fix? for Alpine:3.13 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1