Description
libyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via the function lys_parse_mem at lys_parse_mem.c.
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 | — |
| Debian 12 | libyang2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | libyang2 | 2.1.30-2.1ubuntu0.1 | USN-7752-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | libyang | 2.1.55-1 | — |
Advisories 1
- USN-7752-1 libyang2 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
References
- https://github.com/CESNET/libyang/issues/1979
- FEDORA-2023-17aaa2187f vendor-advisory
- FEDORA-2023-9887f01975 vendor-advisory