libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()

State
Published
Severity
6.3 Medium
Published
Nov 25, 2026
Updated
Nov 30, 2026
Reserved
Nov 25, 2026

Read the record on cve.org

Description

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.

ProductVersions
libyang CESNET6.4.13 and earlier Affected

Weaknesses

  • CWE-775 Missing Release of File Descriptor or Handle after Effective Lifetime

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.