CVE-2021-28902 Null dereference in n/a

High 7.5 Published Updated

A null pointer dereference in libyang allows attackers to cause a denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-28902?

CVE-2021-28902 is a high-severity vulnerability in n/a, published on 20 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In function read_yin_container() 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.

Weakness: CWE-252

Which versions are affected by CVE-2021-28902?

It affects 1 product.

Products include Cesnet Libyang.

How do I fix CVE-2021-28902?

Upgrade to a fixed version.

Is CVE-2021-28902 being exploited?

There is no known exploitation of CVE-2021-28902 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-28902, GHSA-wcmm-c9rc-qjcj, UBUNTU-CVE-2021-28902.

Is CVE-2021-28902 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free