libIEC61850
libIEC61850: Remote NULL dereference in MMS Read alternate-access sub-array path leads to server-side DoS
libIEC61850 is an open-source implementation of IEC 61850 client and server protocols including MMS, GOOSE, Sampled Values, and R-Session. Prior to 1.6.2, alternateArrayAccess in src/mms/iso_mms/server/mms_read_service.c does not validate an alternate-access sub-array range when numberOfElements is greater than zero. An out-of-range MmsValue_getElement call returns NULL, and the sub-array branch passes that value to MmsValue_isDeletable, causing a NULL pointer dereference. A remote MMS Read request can therefore crash servers whose data models contain arrays, while the single-element error path handles the same invalid index safely. This issue is fixed in version 1.6.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.6.2
Fixed in 1.6.2
Mitigation
Upgrade libiec61850 to 1.6.2 or later.
References
- Vendor advisory github.com/mz-automation/libiec61850/security/…
- Patch github.com/mz-automation/libiec61850/commit/7c…
- Release notes github.com/mz-automation/libiec61850/releases/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.