libIEC61850
libIEC61850: Infinite loop and out-of-bounds read in ACSE parseUserInformation when parsing a malformed AARE PDU
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, parseUserInformation in src/mms/iso_acse/acse.c checks len for zero before validating the negative bufPos returned by BerDecoder_decodeLength for a truncated long-form length. The continue path therefore swallows the error, reads buffer[-1], resets parsing to the beginning, and repeats the same malformed state. An unauthenticated remote peer can send a malformed AARE PDU during association to cause an infinite CPU loop under a normal allocator or a one-byte out-of-bounds read and process abort when the preceding byte is inaccessible. 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/2e…
- 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.