{"schemaVersion":4,"id":"CVE-2026-136906","aliases":["UBUNTU-CVE-2026-136906"],"status":"published","duplicateOf":null,"title":"libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()","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.","dates":{"published":"2026-11-25T14:51:43.969Z","modified":"2026-11-30T18:53:52.568Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":5.6,"impact":2.3,"computed":true}]},"epss":{"probability":0.00871,"percentile":0.6007,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-26T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00871,"percentile":0.6007}],"last30":[{"date":"2026-11-26T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00616,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00617,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00871,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00871,"percentile":0.6007}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-775","name":"Missing Release of File Descriptor or Handle after Effective Lifetime","description":"The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/775.html"}],"affected":[{"vendor":"cesnet","product":"libyang","name":"libyang","label":"libyang","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.4.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.4.13","endInclusive":true}}],"versionsText":"≤ 6.4.13","eol":null,"hubHref":"/vendor/cesnet/libyang"},{"vendor":"ubuntu","product":"libyang","name":"libyang","label":"libyang","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libyang","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libyang2","name":"libyang2","label":"libyang2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libyang2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/CESNET/libyang/issues/2598","label":"github.com/CESNET/libyang/issues/2598","hostname":"github.com","tags":["Issue Tracking"]},{"url":"https://github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0","label":"github.com/CESNET/libyang/commit/ed9b84f325fb88e1aa467417222c5f0d0ab51fb0","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L252-L279","label":"github.com/CESNET/libyang/blob/v6.4.13/src/in.c","hostname":"github.com","tags":["Technical Description"]},{"url":"https://github.com/CESNET/libyang/blob/v6.4.13/src/in.c#L281-L316","label":"github.com/CESNET/libyang/blob/v6.4.13/src/in.c","hostname":"github.com","tags":["Technical Description"]},{"url":"https://www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath","label":"www.vulncheck.com/advisories/libyang-through-6.4.13-file-descriptor-leak-via-ly-in-new-filepath","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-136906","label":"ubuntu.com/security/CVE-2026-136906","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136906","label":"www.cve.org/CVERecord?id=CVE-2026-136906","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-25T14:51:43.969Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-30T18:53:52.568Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,63],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00871,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-30T18:53:52.568Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-30T18:53:18.682Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00871,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:46:59.718Z","stale":false,"partial":false}}