Unchecked Return Value Affecting libyang1 package, versions <1.0.184-150300.3.6.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
1.57% (73rd 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-SLES154-LIBYANG1-3021815
  • published13 Sept 2022
  • disclosed12 Sept 2022

Introduced: 12 Sep 2022

CVE-2021-28906  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade SLES:15.4 libyang1 to version 1.0.184-150300.3.6.1 or higher.

NVD Description

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

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.

CVSS Base Scores

version 3.1