Bug 1793930 (CVE-2019-20393) - CVE-2019-20393 libyang: double-free in function yyparse() when empty description is used
Summary: CVE-2019-20393 libyang: double-free in function yyparse() when empty descript...
Keywords:
Status: NEW
Alias: CVE-2019-20393
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1797541 1797619
Blocks: 1790579
TreeView+ depends on / blocked
 
Reported: 2020-01-22 09:55 UTC by Riccardo Schirone
Modified: 2020-02-03 14:01 UTC (History)
2 users (show)

Fixed In Version: libyang 1.0-r1
Doc Type: If docs needed, set a value
Doc Text:
A double-free flaw occurs in libyang in function yyparse() when an empty description is used. Applications that use libyang to process untrusted input YANG files may be vulnerable to this flaw, possibly causing a crash or potential code execution.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Riccardo Schirone 2020-01-22 09:55:45 UTC
A double-free is present in libyang up to version v1.0-r1 in function yyparse() when an empty description is used. 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/742

Upstream fix:
https://github.com/CESNET/libyang/commit/d9feacc4a590d35dbc1af21caf9080008b4450ed

Comment 1 Riccardo Schirone 2020-02-03 11:36:47 UTC
Created libyang tracking bugs for this issue:

Affects: fedora-all [bug 1797541]


Note You need to log in before you can comment on or make changes to this bug.