Bug 1793935 (CVE-2019-20398) - CVE-2019-20398 libyang: NULL pointer dereference in function lys_extension_instances_free()
Summary: CVE-2019-20398 libyang: NULL pointer dereference in function lys_extension_in...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-20398
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: 1797552 1797623 1910046
Blocks: 1790579
TreeView+ depends on / blocked
 
Reported: 2020-01-22 10:01 UTC by Riccardo Schirone
Modified: 2021-10-28 10:08 UTC (History)
2 users (show)

Fixed In Version: libyang 1.0-r3
Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw occurs in libyang in the function lys_extension_instances_free() due to a copy of unresolved extensions in lys_restr_dup(). Applications that use libyang to process untrusted input YANG files may crash.
Clone Of:
Environment:
Last Closed: 2021-10-28 10:08:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Riccardo Schirone 2020-01-22 10:01:43 UTC
A NULL pointer dereference is present in libyang up to version v1.0-r3 in function lys_extension_instances_free() due to copy of unresolved extensions in lys_restr_dup(). Applications that use libyang to parse untrusted input yang files may crash.

Upstream fix:
https://github.com/CESNET/libyang/commit/7852b272ef77f8098c35deea6c6f09cb78176f08

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

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

Affects: fedora-all [bug 1797552]


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