Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-57446 Overview
CVE-2026-57446 is a double free vulnerability [CWE-415] in libIEC61850, an open-source implementation of IEC 61850 client and server protocols including Manufacturing Message Specification (MMS), GOOSE, Sampled Values, and R-Session. The flaw affects versions from 1.6.1 up to, but not including, 1.6.2. A remote attacker can crash a server that has the MMS file service and ObtainFile operation enabled by sending a specific success-then-failure request sequence. The issue is fixed in version 1.6.2.
Critical Impact
Unauthenticated remote attackers can trigger a double free in MMS file-handling logic, causing denial of service on industrial control system (ICS) servers running libIEC61850.
Affected Products
- libIEC61850 version 1.6.1
- libIEC61850 versions after 1.6.1 and before 1.6.2
- MMS servers with the file service and ObtainFile operation enabled
Discovery Timeline
- 2026-10-16 - CVE-2026-57446 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-57446
Vulnerability Analysis
The vulnerability resides in the MMS ObtainFile service implementation inside src/mms/iso_mms/server/mms_server_connection.c. When an ObtainFile operation succeeds, the server closes MmsObtainFileTask::fileHandle but fails to reset the pointer to NULL. The task remains in the pool marked MMS_FILE_UPLOAD_STATE_NOT_USED with a stale, non-NULL fileHandle reference.
If a subsequent ObtainFile request reuses the same task slot and destination creation fails, the error-handling path MMS_FILE_UPLOAD_STATE_SEND_OBTAIN_FILE_ERROR_DESTINATION calls FileSystem_closeFile() on the stale handle. This closes the already-freed file object a second time, corrupting internal file-system bookkeeping and crashing the server process.
Root Cause
The root cause is missing pointer invalidation after resource release. The fileHandle field is closed on the success path without being set to NULL, violating the invariant that MMS_FILE_UPLOAD_STATE_NOT_USED tasks hold no live file resources. Reuse of the task then triggers the duplicate close [CWE-415].
Attack Vector
The attack is network-reachable and requires no authentication or user interaction on servers that expose the MMS file service. An attacker initiates a valid ObtainFile request, allows it to complete, then issues a second ObtainFile request crafted to fail at destination creation. The double close of the stale FILE object terminates the server, disrupting IEC 61850 communications in substation automation environments.
// Patch from libIEC61850 commit d86b4a9c7a903641819235e1678b18901518f3cd
// src/mms/iso_mms/server/mms_server_connection.c
if(fileTask->fileHandle)
{
FileSystem_closeFile(fileTask->fileHandle);
+ fileTask->fileHandle = NULL;
}
fileTask->state = MMS_FILE_UPLOAD_STATE_SEND_OBTAIN_FILE_RESPONSE;
Source: GitHub Commit d86b4a9. The patch sets fileHandle to NULL immediately after closing it, preventing the stale pointer from being closed again on the error path.
Detection Methods for CVE-2026-57446
Indicators of Compromise
- Unexpected termination or restart of libIEC61850-based MMS server processes
- Server crash dumps referencing FileSystem_closeFile, MmsObtainFileTask, or the MMS_FILE_UPLOAD_STATE_SEND_OBTAIN_FILE_ERROR_DESTINATION state
- Repeated ObtainFile requests from a single client followed by malformed destination parameters in MMS traffic captures
Detection Strategies
- Inspect MMS traffic on TCP port 102 for back-to-back ObtainFile requests where the second request specifies an invalid or unwritable destination
- Correlate server crash events with inbound MMS session activity from non-engineering workstations
- Monitor process supervisors for abnormal exit codes on IEC 61850 server binaries linked against libIEC61850 1.6.1
Monitoring Recommendations
- Enable verbose logging on MMS file-service operations and capture full request payloads for forensic review
- Deploy ICS-aware network monitoring to baseline normal ObtainFile usage and alert on anomalies
- Track libIEC61850 library versions across OT assets to identify unpatched instances
How to Mitigate CVE-2026-57446
Immediate Actions Required
- Upgrade libIEC61850 to version 1.6.2 or later on all affected MMS server deployments
- If upgrading is not immediately possible, disable the MMS file service and ObtainFile operation in server configuration
- Restrict network reachability to MMS port 102 using firewall rules that allow only authorized engineering hosts
Patch Information
The fix is included in libIEC61850 release v1.6.2. The code change is documented in GitHub Commit d86b4a9 and the advisory is published as GHSA-cxgr-7v9h-fj9p. Rebuild and redeploy any downstream applications that statically link the library.
Workarounds
- Disable the MMS file service entirely on servers that do not require file transfer functionality
- Segment IEC 61850 networks and enforce allow-lists so only trusted clients can initiate ObtainFile requests
- Deploy an ICS-aware intermediary or protocol gateway to drop malformed MMS file-service sequences
# Verify installed libIEC61850 version and rebuild against v1.6.2
git clone https://github.com/mz-automation/libiec61850.git
cd libiec61850
git checkout v1.6.2
mkdir build && cd build
cmake ..
make
sudo make install
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

