CVE-2021-28904 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 t...
HighCVSS 7.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
6 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libyang(Ubuntu 20.04) | = 0.16.105-1; = 0.16.105-2; = 0.16.105-3; = 0.16.105-3build1 +1 more | No fix listed | No fix yet |
| alpine/libyang(Alpine v3.13) | < 1.0.184-r1 | 1.0.184-r1 | Fixed |
| alpine/libyang(Alpine v3.14) | < 1.0.215-r1 | 1.0.215-r1 | Fixed |
| cesnet libyang | <= 1.0.225 | after 1.0.225 | Fixed |
| debian/libyang(Debian 13) | < 3.4.2+dfsg-2 | 3.4.2+dfsg-2 | Fixed |
| debian/libyang(Debian 14) | < 3.4.2+dfsg-2 | 3.4.2+dfsg-2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libyang(Debian:13) | < 3.4.2+dfsg-2 | 3.4.2+dfsg-2 |
| debian/libyang(Debian:14) | < 3.4.2+dfsg-2 | 3.4.2+dfsg-2 |
| cesnet libyang | <= 1.0.225 | No fix listed |
| alpine/libyang(Alpine:v3.13) | < 1.0.184-r1 | 1.0.184-r1 |
| alpine/libyang(Alpine:v3.14) | < 1.0.215-r1 | 1.0.215-r1 |
| ubuntu/libyang(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/libyang(Ubuntu:20.04) | = 0.16.105-1 | No fix listed |
| ubuntu/libyang(Ubuntu:20.04) | = 0.16.105-2 | No fix listed |
| ubuntu/libyang(Ubuntu:20.04) | = 0.16.105-3 | No fix listed |
| ubuntu/libyang(Ubuntu:20.04) | = 0.16.105-3build1 | No fix listed |
References
- Debian Security Tracker CVE-2021-28904 vendor-advisory
- github.com exploit issue-tracking third-party-advisory
- GLSA-202107-54 third-party-advisory vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.cve.org issue-tracking