CVE Vulnerabilities

CVE-2019-20398

NULL Pointer Dereference

Published: Jan 22, 2020 | Modified: Sep 19, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.5 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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

Weakness

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Affected Software

Name Vendor Start Version End Version
Libyang Cesnet 0.11-r1 (including) 0.11-r1 (including)
Libyang Cesnet 0.11-r2 (including) 0.11-r2 (including)
Libyang Cesnet 0.12-r1 (including) 0.12-r1 (including)
Libyang Cesnet 0.12-r2 (including) 0.12-r2 (including)
Libyang Cesnet 0.13-r1 (including) 0.13-r1 (including)
Libyang Cesnet 0.13-r2 (including) 0.13-r2 (including)
Libyang Cesnet 0.14-r1 (including) 0.14-r1 (including)
Libyang Cesnet 0.15-r1 (including) 0.15-r1 (including)
Libyang Cesnet 0.16-r1 (including) 0.16-r1 (including)
Libyang Cesnet 0.16-r2 (including) 0.16-r2 (including)
Libyang Cesnet 0.16-r3 (including) 0.16-r3 (including)
Libyang Cesnet 1.0-r1 (including) 1.0-r1 (including)
Libyang Cesnet 1.0-r2 (including) 1.0-r2 (including)
Libyang Ubuntu eoan *
Libyang Ubuntu esm-apps/focal *
Libyang Ubuntu focal *
Libyang Ubuntu groovy *
Libyang Ubuntu hirsute *
Libyang Ubuntu trusty *
Libyang Ubuntu upstream *
Red Hat Enterprise Linux 8 RedHat libyang-0:1.0.184-1.el8 *

Potential Mitigations

References