CVE catalog

CVE-2021-28906

libyang2: CVE-2021-28906

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.57% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibyang2bookworm2.1.30-2not affected
Ubuntulibyang20.040.16.105-1vulnerable
Ubuntulibyang20.040.16.105-2vulnerable
Ubuntulibyang20.040.16.105-3vulnerable
Ubuntulibyang20.040.16.105-3build1vulnerable
Ubuntulibyang22.041.0.225-1.1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibyang2sourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libyang2]Not affected
    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

    • 2.1.30-2 · arm64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

  • [libyang2-dev]Not affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

    • 2.1.30-2 · arm64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

  • [libyang2-tools]Not affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · amd64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

    • 2.1.30-2 · arm64 · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

  • [libyang-tools]Not affected

    Source package: [libyang2]

    Details (2)
    • 2.1.30-2 · all · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

    • 2.1.30-2 · all · bookworm

      Not affected

      dsa · libyang2 · debian · bookworm

[Debian 13 (Trixie)]

  • [libyang3]Fixed

    Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

  • Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

  • Source package: [libyang]

    Details (4)
    • 3.12.2-1 · amd64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.12.2-1 · arm64 · trixie

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

    • 3.13.6-1~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 3.4.2+dfsg-2

      dsa · libyang · debian · 13

Observed:

References