All reports
Medium

libyang: NULL pointer dereference in ext_get_plugin()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-28904

Probability of exploitation in the next 30 days: 1.41%

FIRST EPSS · 2026-11-22

Description

In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.

A flaw was found in libyang. A NULL pointer dereference in ext_get_plugin function allows a remote attacker to crash an application that uses libyang with user-controlled YANG data. The highest threat from this vulnerability is the service availability.