Bug 1793924 (CVE-2019-20395) - CVE-2019-20395 libyang: stack-overflow when parsing yang files with self-referential union types
Summary: CVE-2019-20395 libyang: stack-overflow when parsing yang files with self-refe...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-20395
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1797548 1797616 1910046
Blocks: 1790579
TreeView+ depends on / blocked
 
Reported: 2020-01-22 09:33 UTC by Riccardo Schirone
Modified: 2021-10-28 10:10 UTC (History)
2 users (show)

Fixed In Version: libyang 1.0-r1
Doc Type: If docs needed, set a value
Doc Text:
A stack-overflow flaw was found in libyang due to a self-referential union type containing leafrefs. Applications that use libyang to process untrusted input YANG files may crash while processing malformed files.
Clone Of:
Environment:
Last Closed: 2021-10-28 10:10:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Riccardo Schirone 2020-01-22 09:33:35 UTC
A stack-overflow is present in libyang up to version v1.0-r1 due to self-referential union type containing leafrefs. Applications that use libyang to parse untrusted input yang files may crash.

Upstream issue:
https://github.com/CESNET/libyang/issues/724

Upstream fix:
https://github.com/CESNET/libyang/commit/4e610ccd87a2ba9413819777d508f71163fcc237

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

Affects: fedora-all [bug 1797548]


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