Reachable Assertion in libyang's lys_node_free() Function (CWE-617)

Reachable Assertion in libyang's lys_node_free() Function (CWE-617)

CVE-2021-28905 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

In function lys_node_free() in libyang <= v1.0.225, it asserts that the value of node->module can't be NULL. But in some cases, node->module can be null, which triggers a reachable assertion (CWE-617).

Learn more about our Web Application Penetration Testing UK.