Bug 1793934 (CVE-2019-20391)

Summary: CVE-2019-20391 libyang: invalid memory access in resolve_feature_value() when a if-feature is used inside a bit
Product: [Other] Security Response Reporter: Riccardo Schirone <rschiron>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mruprich, tkorbar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libyang 1.0-r3 Doc Type: If docs needed, set a value
Doc Text:
An invalid memory access flaw occurs in libyang in the function resolve_feature_value() when an if-feature statement is used inside a bit. Applications that use libyang to process untrusted input YANG files may crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 10:10:40 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: 1797551, 1797621, 1910046    
Bug Blocks: 1790579    

Description Riccardo Schirone 2020-01-22 09:59:33 UTC
An invalid memory access flaw is present in libyang up to version v1.0-r3 in function resolve_feature_value() when a if-feature statement is used inside a bit. Applications that use libyang to parse untrusted input yang files may crash.

Upstream fix:
https://github.com/CESNET/libyang/commit/bdb596ddc07596fa212f231135b87d0b9178f6f8

Upstream issue:
https://github.com/CESNET/libyang/issues/772

Comment 1 Riccardo Schirone 2020-02-03 11:48:25 UTC
Created libyang tracking bugs for this issue:

Affects: fedora-all [bug 1797551]