Description
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).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libyang | 3.4.2+dfsg-2 | — |
| Debian 13 | libyang | 3.4.2+dfsg-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libyang | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | libyang | 1.0.184-150300.3.3.1 | SUSE-SU-2022:2922-1 |
| SLES 15 SP3 | libyang | 1.0.184-150300.3.3.1 | SUSE-SU-2022:2922-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | libyang | 1.0.184-150300.3.3.1 | SUSE-SU-2022:2922-1 |
| openSUSE Leap 15.3 | libyang | 1.0.184-150300.3.3.1 | SUSE-SU-2022:2922-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.14 | libyang | 1.0.215-r1 | — |
| Alpine v3.13 | libyang | 1.0.184-r1 | — |
Advisories 1
- SUSE-SU-2022:2922-1 Security update for libyang SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/CESNET/libyang/issues/1452
- GLSA-202107-54 vendor-advisory