Bug 1964018 (CVE-2021-28906) - CVE-2021-28906 libyang: NULL pointer dereference in read_yin_leaf()
Summary: CVE-2021-28906 libyang: NULL pointer dereference in read_yin_leaf()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-28906
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: 1964019 1965260 1965261
Blocks: 1964021
TreeView+ depends on / blocked
 
Reported: 2021-05-24 14:46 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-04-17 21:25 UTC (History)
2 users (show)

Fixed In Version: libyang 1.0.226
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:46:39 UTC
In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash.

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

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

Affects: fedora-all [bug 1964019]

Comment 2 Riccardo Schirone 2021-05-27 09:46:22 UTC
Upstream patch:
https://github.com/CESNET/libyang/commit/a3917d95d516e3de267d3cfa5d4d3715a90e8777

This is the same patch as CVE-2021-28902.


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