CVE-2019-20397: Double Free
A double-free is present in libyang before v1.0-r1 in the function yyparse() when an organization field is not terminated. 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.
Other sources
A double-free is present in libyang up to version v1.0-r1 in function yyparse() when an organization field is not terminated. 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.
Upstream issue: https://github.com/CESNET/libyang/issues/739
Upstream fix: https://github.com/CESNET/libyang/commit/88bd6c548ba79bce176cd875e9b56e7e0ef4d8d4
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2019-20397?
CVE-2019-20397 is considered a high severity vulnerability due to its potential for causing crashes or allowing code execution.
How do I fix CVE-2019-20397?
To fix CVE-2019-20397, update libyang to version 1.0 or later.
What does CVE-2019-20397 affect?
CVE-2019-20397 affects various versions of libyang before 1.0-r1.
What kind of vulnerability is CVE-2019-20397?
CVE-2019-20397 is a double-free vulnerability occurring in the yyparse() function when an organization field is not terminated.
Can CVE-2019-20397 lead to code execution?
Yes, CVE-2019-20397 can potentially lead to code execution if exploited.