{"id":"CVE-2026-57446","summary":"libIEC61850: Server-side double free in MMS ObtainFile task reuse due to stale FILE* handle","details":"libIEC61850 is an open-source implementation of IEC 61850 client and server protocols including MMS, GOOSE, Sampled Values, and R-Session. From 1.6.1 until 1.6.2, a successful MMS ObtainFile operation closes MmsObtainFileTask::fileHandle but leaves the stale non-NULL value in a task marked MMS_FILE_UPLOAD_STATE_NOT_USED. If a later ObtainFile request reuses that task and destination creation fails, MMS_FILE_UPLOAD_STATE_SEND_OBTAIN_FILE_ERROR_DESTINATION cleanup closes the stale FILE object again. Servers with the MMS file service and ObtainFile enabled can therefore be crashed remotely by the success-then-failure request sequence. This issue is fixed in version 1.6.2.","aliases":["GHSA-cxgr-7v9h-fj9p"],"modified":"2026-10-17T02:48:23.144066544Z","published":"2026-10-16T15:46:33.549Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-415","CWE-664","CWE-672"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57446.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57446.json"},{"type":"FIX","url":"https://github.com/mz-automation/libiec61850/commit/d86b4a9c7a903641819235e1678b18901518f3cd"},{"type":"WEB","url":"https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2"},{"type":"ADVISORY","url":"https://github.com/mz-automation/libiec61850/security/advisories/GHSA-cxgr-7v9h-fj9p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57446"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mz-automation/libiec61850","events":[{"introduced":"a13961110b8238d2d8ea577c1fb7592ba3017ad8"},{"fixed":"f0f797bf955da763353f7081c892a1ff6b55e5a1"}],"database_specific":{"extracted_events":[{"introduced":"1.6.1"},{"fixed":"1.6.2"}],"source":"AFFECTED_FIELD"}}],"versions":["v1.6.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57446.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}