CVE Vulnerabilities

CVE-2019-20393

Double Free

Published: Jan 22, 2020 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7 MODERATE
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A double-free is present in libyang before v1.0-r1 in the 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.

Weakness

The product calls free() twice on the same memory address.

Affected Software

NameVendorStart VersionEnd Version
LibyangCesnet0.11-r1 (including)0.11-r1 (including)
LibyangCesnet0.11-r2 (including)0.11-r2 (including)
LibyangCesnet0.12-r1 (including)0.12-r1 (including)
LibyangCesnet0.12-r2 (including)0.12-r2 (including)
LibyangCesnet0.13-r1 (including)0.13-r1 (including)
LibyangCesnet0.13-r2 (including)0.13-r2 (including)
LibyangCesnet0.14-r1 (including)0.14-r1 (including)
LibyangCesnet0.15-r1 (including)0.15-r1 (including)
LibyangCesnet0.16-r1 (including)0.16-r1 (including)
LibyangCesnet0.16-r2 (including)0.16-r2 (including)
LibyangCesnet0.16-r3 (including)0.16-r3 (including)
Red Hat Enterprise Linux 8RedHatlibyang-0:1.0.184-1.el8*
LibyangUbuntueoan*
LibyangUbuntuesm-apps/focal*
LibyangUbuntufocal*
LibyangUbuntugroovy*
LibyangUbuntuhirsute*
LibyangUbuntutrusty*
LibyangUbuntuupstream*

Potential Mitigations

References