# CVE-2026-57446: libIEC61850: Server-side double free in MMS ObtainFile task reuse due to stale FILE* handle

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-16T15:46:33.549Z
- Modified: 2026-10-28T19:17:36.520Z
- Weaknesses: CWE-415, CWE-664, CWE-672
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mz-automation libiec61850: >= 1.6.1, < 1.6.2

## References

- <https://github.com/mz-automation/libiec61850/security/advisories/GHSA-cxgr-7v9h-fj9p> (exploit)
- <https://github.com/mz-automation/libiec61850/commit/d86b4a9c7a903641819235e1678b18901518f3cd>
- <https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2>

## Sources

- CVE List: [CVE-2026-57446](https://www.cve.org/CVERecord?id=CVE-2026-57446), CVE Terms of Use, modified 2026-10-28
- NVD: [CVE-2026-57446](https://nvd.nist.gov/vuln/detail/CVE-2026-57446), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-57446 · Whole record: https://cve.day/CVE-2026-57446.json · Rebuilt by cve.day 2026-11-25T22:59:45.063Z
