{"id":"CVE-2026-68908","state":"PUBLISHED","title":"libIEC61850: Oversized RptID can trigger invalid free of a stack-backed visible string in the report send path","description":"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, Reporting_RCBWriteAccessHandler accepts an RptID longer than 129 bytes in the report-control-block write path. When GI later causes sendNextReportEntrySegment to serialize the report, the function wraps rptIdBuf[130] as a temporary MmsValue and passes it to MmsValue_setVisibleString. The setter's resize path frees the stack-backed buffer, allowing a remote client to trigger an invalid free and server crash by writing the oversized RptID and then generating a report. This issue is fixed in version 1.6.2.","publishedAt":"2026-10-16T15:47:25.012Z","updatedAt":"2026-10-16T16:51:44.888Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["mz-automation libiec61850"],"affected":[{"vendor":"mz-automation","product":"libiec61850","versions":[{"version":"< 1.6.2","status":"affected"}]}],"references":["https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v","https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2"],"weaknesses":["CWE-590","CWE-664","CWE-763"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68908.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68908","state":"PUBLISHED","datePublished":"2026-10-16T15:47:25.012Z","dateUpdated":"2026-10-16T16:51:44.888Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-31T21:04:04.040Z"},"containers":{"cna":{"title":"libIEC61850: Oversized RptID can trigger invalid free of a stack-backed visible string in the report send path","descriptions":[{"lang":"en","value":"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, Reporting_RCBWriteAccessHandler accepts an RptID longer than 129 bytes in the report-control-block write path. When GI later causes sendNextReportEntrySegment to serialize the report, the function wraps rptIdBuf[130] as a temporary MmsValue and passes it to MmsValue_setVisibleString. The setter's resize path frees the stack-backed buffer, allowing a remote client to trigger an invalid free and server crash by writing the oversized RptID and then generating a report. This issue is fixed in version 1.6.2."}],"affected":[{"vendor":"mz-automation","product":"libiec61850","versions":[{"version":"< 1.6.2","status":"affected"}]}],"references":[{"url":"https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v","name":"https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","name":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","tags":["x_refsource_MISC"]},{"url":"https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2","name":"https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-590","lang":"en","description":"CWE-590: Free of Memory not on the Heap","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-664","lang":"en","description":"CWE-664: Improper Control of a Resource Through its Lifetime","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-763","lang":"en","description":"CWE-763: Release of Invalid Pointer or Reference","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-16T15:47:25.012Z"},"source":{"advisory":"GHSA-7qg8-hm25-rv5v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-16T16:51:16.889294Z","id":"CVE-2026-68908","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T16:51:44.888Z"}}]}}}