Bug 1964008 (CVE-2021-28903) - CVE-2021-28903 libyang: recursive call to lyxml_parse_mem() lead to crash
Summary: CVE-2021-28903 libyang: recursive call to lyxml_parse_mem() lead to crash
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-28903
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1964009 1965254 1965255
Blocks: 1964021
TreeView+ depends on / blocked
 
Reported: 2021-05-24 14:38 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-04-17 21:24 UTC (History)
2 users (show)

Fixed In Version: libyang 1.0.226
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libyang. An uncontrolled recursion in lyxml_parse_elem function allows a remote attacker to crash an application that uses libyang with user-controlled XML data. The highest threat from this vulnerability is the service availability.
Clone Of:
Environment:
Last Closed: 2021-10-28 12:28:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-05-24 14:38:57 UTC
A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem(). lyxml_parse_elem() function will be called recursively, which will consume stack space and lead to crash.

Reference:
https://github.com/CESNET/libyang/issues/1453

Comment 1 Guilherme de Almeida Suckevicz 2021-05-24 14:39:14 UTC
Created libyang tracking bugs for this issue:

Affects: fedora-all [bug 1964009]

Comment 2 Riccardo Schirone 2021-05-27 09:29:16 UTC
Upstream patch:
https://github.com/CESNET/libyang/commit/298b30ea4ebee137226acf9bb38678bd82704582


Note You need to log in before you can comment on or make changes to this bug.