CVE-2019-20398: Null Pointer Dereference

Published Jan 22, 2020
·
Updated

A NULL pointer dereference is present in libyang before v1.0-r3 in the function lysextensioninstancesfree() due to a copy of unresolved extensions in lysrestrdup(). Applications that use libyang to parse untrusted input yang files may crash.

Other sources

A NULL pointer dereference is present in libyang up to version v1.0-r3 in function lysextensioninstancesfree() due to copy of unresolved extensions in lysrestrdup(). 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

Red Hat

Affected Software

14 affected componentsFixes available
redhat/libyang<1.0
1.0
CESNET libyang=0.11-r1
CESNET libyang=0.11-r2
CESNET libyang=0.12-r1
CESNET libyang=0.12-r2
CESNET libyang=0.13-r1
CESNET libyang=0.13-r2
CESNET libyang=0.14-r1
CESNET libyang=0.15-r1
CESNET libyang=0.16-r1
CESNET libyang=0.16-r2
CESNET libyang=0.16-r3
CESNET libyang=1.0-r1
CESNET libyang=1.0-r2

Event History

Jan 22, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2019-20398?

CVE-2019-20398 is classified as a high severity vulnerability due to the potential for application crashes from a NULL pointer dereference.

2

How do I fix CVE-2019-20398?

To fix CVE-2019-20398, you should upgrade libyang to version 1.0-r3 or later.

3

Which versions of libyang are affected by CVE-2019-20398?

CVE-2019-20398 affects libyang versions prior to v1.0-r3, including versions up to and including 1.0.

4

What type of issue is identified in CVE-2019-20398?

CVE-2019-20398 is a NULL pointer dereference issue that can lead to application crashes when parsing untrusted YANG files.

5

Can I use older versions of libyang without addressing CVE-2019-20398?

Using older versions of libyang without addressing CVE-2019-20398 is risky, as they are vulnerable to crashes when processing untrusted input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203