USN-9429-1: libyang vulnerabilities
It was discovered that libyang did not properly handle certain feature statements in YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20391)
It was discovered that libyang did not properly handle undefined features in certain YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20392)
It was discovered that libyang incorrectly freed memory when parsing certain YANG files with empty descriptions. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2019-20393)
It was discovered that libyang incorrectly freed memory when parsing certain YANG files containing notifications. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2019-20394)
It was discovered that libyang did not properly handle certain recursive type definitions in YANG files. An attacker could possibly use this issue to cause libyang to use excessive resources or crash, resulting in a denial of service. (CVE-2019-20395)
It was discovered that libyang did not properly handle malformed patterns in YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20396)
It was discovered that libyang incorrectly freed memory when parsing certain YANG files with unterminated organization fields. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2019-20397)
It was discovered that libyang did not properly handle unresolved extensions in certain YANG files. An attacker could possibly use this issue to cause libyang to crash, resulting in a denial of service. (CVE-2019-20398)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libyangto a version that resolves this vulnerability.Fixed in 0.16.105-3ubuntu0.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What input would an attacker need to control to exploit these issues?
The attacker would need to cause libyang to parse crafted YANG files. The described malicious constructs include feature statements, undefined features, empty descriptions, notifications, and recursive type definitions.
What impact is possible beyond a service crash?
Several issues can cause denial of service through crashes or excessive resource use. The memory-handling issues involving empty descriptions and notifications may also allow arbitrary code execution.