Bug 1779573 (CVE-2019-19333)
| Summary: | CVE-2019-19333 libyang: stack-based buffer overflow in make_canonical when bits leaf type is used | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Riccardo Schirone <rschiron> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | mruprich, security-response-team, tkorbar |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libyang 1.0-r5 | Doc Type: | If docs needed, set a value |
| Doc Text: |
A stack-based buffer overflow flaw was discovered in the way libyang parses YANG files with a leaf of type "bits". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or execute code.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-12-23 14:09:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1780310, 1780311, 1780495 | ||
| Bug Blocks: | 1778852 | ||
|
Description
Riccardo Schirone
2019-12-04 09:47:52 UTC
Acknowledgments: Name: Riccardo Schirone (Red Hat Product Security) An application that parses untrusted YANG files could be vulnerable to this flaw. To trigger this flaw, a YANG module should have a leaf with type "bits" and a default value longer than 511 bytes, which would cause a stack-based buffer overflow in make_canonical(), due to the insecure use of strcpy without any check. Created libyang tracking bugs for this issue: Affects: fedora-all [bug 1780495] This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2019:4360 https://access.redhat.com/errata/RHSA-2019:4360 This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2019-19333 |