{"id":"CVE-2026-68908","summary":"libIEC61850: Oversized RptID can trigger invalid free of a stack-backed visible string in the report send path","details":"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.","aliases":["CVE-2026-18582","GHSA-7qg8-hm25-rv5v"],"modified":"2026-10-28T11:17:19.390943851Z","published":"2026-10-16T15:47:25.012Z","database_specific":{"cwe_ids":["CWE-590","CWE-664","CWE-763"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68908.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68908.json"},{"type":"ADVISORY","url":"https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68908"},{"type":"FIX","url":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mz-automation/libiec61850","events":[{"introduced":"0"},{"fixed":"f0f797bf955da763353f7081c892a1ff6b55e5a1"},{"fixed":"5b2a69f44256b8548927d8afdd7ac5f5381abe1e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.6.2"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"5b2a69f44256b8548927d8afdd7ac5f5381abe1e"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.6.2","range":[{"fixed":"f0f797bf955da763353f7081c892a1ff6b55e5a1"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.6.1","v1.6.0","v1.4.1","v1.4.0","v1.2.0","v1.3.0","v1.2.2","v1.2.1","v1.1","v1.0.1","v1.0.0"],"database_specific":{"vanir_signatures_modified":"2026-10-28T11:17:19Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68908.json","vanir_signatures":[{"digest":{"function_hash":"239492926260023520981197973325102882426","length":10809},"id":"CVE-2026-68908-44026881","signature_type":"Function","signature_version":"v1","source":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","target":{"file":"src/iec61850/server/mms_mapping/reporting.c","function":"sendNextReportEntrySegment"},"deprecated":false},{"id":"CVE-2026-68908-89ba954f","signature_type":"Line","signature_version":"v1","source":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","target":{"file":"src/iec61850/server/mms_mapping/reporting.c"},"deprecated":false,"digest":{"line_hashes":["135553824467105894718493901937997193267","133953580618150493851030447315505619404","76166046935499232825858244244483143153","255942837568997588166263166035279375383","94027603216468330018588814376814986794","153293100347285870660099630188449328859","154426502658573711154635227123803054433","204063307851803203941955467660122151749","93163946215245591929493921064490970480","161564712357783557356327442379769362177"],"threshold":0.9}},{"digest":{"function_hash":"183400584457095388775570597020912256281","length":17357},"id":"CVE-2026-68908-9506666a","signature_type":"Function","signature_version":"v1","source":"https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e","target":{"file":"src/iec61850/server/mms_mapping/reporting.c","function":"Reporting_RCBWriteAccessHandler"},"deprecated":false}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}