p PatchFirst

CVE-2026-136906

CVE-2026-136906 · libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()

CVSS 6.3 · Medium · EPSS 0.6%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • libyangNo fix published
  • libyang Ubuntu 20.04 LTSNo fix published
  • libyang Ubuntu 22.04 LTSNo fix published
  • libyang2 Ubuntu 22.04 LTSNo fix published
  • and 3 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libyang"'
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libyang2"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

libyang through 6.4.13 contains a file descriptor leak in ly_in_new_filepath() and ly_in_filepath() in src/in.c that fails to close descriptors when file mapping fails. Attackers who can supply files parsed through lyd_parse_data_path() or lys_parse_path() can repeatedly submit empty files to exhaust descriptors, causing later file and socket operations to fail.

Published
Updated

Stack: system

Affected products and versions

  • libyang

    Versions
    • ≥ 0, ≤ 6.4.13: Affected (semver)

    No fix published

  • libyang Ubuntu 20.04 LTS

    Versions
    • 0.16.105-1
    • 0.16.105-2
    • 0.16.105-3
    • 0.16.105-3build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libyang Ubuntu 22.04 LTS

    Versions
    • 1.0.225-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libyang2 Ubuntu 22.04 LTS

    Versions
    • 2.0.112-6
    • 2.0.112-6ubuntu1
    • 2.0.112-6ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libyang2 Ubuntu 24.04 LTS

    Versions
    • 2.1.30-2
    • 2.1.30-2.1
    • 2.1.30-2.1build1
    • 2.1.30-2.1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libyang Ubuntu 26.10

    Versions
    • 3.13.6-1
    • 3.13.6-1ubuntu1
    • 6.1.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libyang Ubuntu 26.04 LTS

    Versions
    • 3.13.5-2
    • 3.13.6-1
    • 3.13.6-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →