Unchecked Return Value Affecting CESNET/libyang package, versions [,1.0.240)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (30th 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-UNMANAGED-CESNETLIBYANG-3023052
  • published14 Sept 2022
  • disclosed14 Sept 2022
  • creditzounathan

Introduced: 14 Sep 2022

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

How to fix?

Upgrade CESNET/libyang to version 1.0.240 or higher.

Overview

Affected versions of this package are vulnerable to Unchecked Return Value in function read_yin_leaf() that doesn't check whether the value of retval->ext[r] is NULL. This can lead the operation of retval->ext[r]->flags to crash.

CVSS Base Scores

version 3.1