NULL Pointer Dereference Affecting libyang2 package, versions <2.1.30-2.1ubuntu0.1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.06% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2404-LIBYANG2-12157078
  • published23 Aug 2025
  • disclosed3 Apr 2023

Introduced: 3 Apr 2023

CVE-2023-26916  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.04 libyang2 to version 2.1.30-2.1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libyang2 package and not the libyang2 package as distributed by Ubuntu. See How to fix? for Ubuntu:24.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1