PT-2021-4113 · Libyang+2 · Libyang+2

Zounathan

·

Published

2021-03-08

·

Updated

2022-09-12

·

CVE-2021-28906

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions libyang versions prior to 1.0.226
Description The issue is related to the function read yin leaf() in the libyang library, which fails to check if the value of retval->ext[r] is NULL. This can lead to a crash when attempting to access retval->ext[r]->flags when retval->ext[r] is NULL. The vulnerability can be exploited by a remote attacker to cause a denial of service.
Recommendations For libyang versions prior to 1.0.226, update to version 1.0.226 or later to resolve the issue. As a temporary workaround, consider adding a NULL check for retval->ext[r] before accessing its members to prevent the crash.

Exploit

Fix

Unchecked Return Value

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-04703
CVE-2021-28906
OPENSUSE-SU-2022_3245-1
SUSE-SU-2022:3245-1

Affected Products

Debian
Suse
Libyang