Use After Free Affecting libyang package, versions <0:1.0.184-1.el8


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.37% (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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL8-LIBYANG-3394209
  • published26 Jul 2021
  • disclosed26 Apr 2019

Introduced: 26 Apr 2019

CVE-2019-20394  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade RHEL:8 libyang to version 0:1.0.184-1.el8 or higher.
This issue was patched in RHEA-2021:1906.

NVD Description

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

A double-free is present in libyang before v1.0-r3 in the function yyparse() when a type statement in used in a notification statement. Applications that use libyang to parse untrusted input yang files may be vulnerable to this flaw, which would cause a crash or potentially code execution.

CVSS Scores

version 3.1