{"id":"CVE-2026-62298","summary":"asn1c: ASAN crash with decode of open types","details":"mouse07410/asn1c is an ASN.1 compiler. Prior to 1.2.5, `OPEN TYPE` decoding can dereference an unallocated member pointer and crash the consuming program. `OPEN_TYPE_aper_get` in `OPEN_TYPE_aper.c`, `OPEN_TYPE_ber_get` in `OPEN_TYPE_ber.c`, `OPEN_TYPE_oer_get` in `OPEN_TYPE_oer.c`, and `OPEN_TYPE_uper_get` in `OPEN_TYPE_uper.c` share the pattern: a conditional null check on `*memb_ptr2` resets presence only when the member exists, but execution then unconditionally computes an inner value from that pointer and a member offset. If the `OPEN TYPE` member has not been allocated, the null-pointer arithmetic and subsequent read cause a segmentation fault. The advisory demonstrates UPER and APER crashes for `E2connectionUpdateAcknowledge`, notes that `E2AP` uses APER, and provides a BER reproducer; OER is also explicitly identified as affected. This issue is fixed in version 1.2.5.","aliases":["GHSA-rcj5-gcvg-x796"],"modified":"2026-11-01T07:17:57.715118845Z","published":"2026-10-30T18:56:59.029Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62298.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-476"]},"references":[{"type":"WEB","url":"https://github.com/mouse07410/asn1c/releases/tag/v1.2.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62298.json"},{"type":"ADVISORY","url":"https://github.com/mouse07410/asn1c/security/advisories/GHSA-rcj5-gcvg-x796"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62298"},{"type":"FIX","url":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280"},{"type":"FIX","url":"https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mouse07410/asn1c","events":[{"introduced":"0"},{"fixed":"81e45fbd8eabbb95f7ed1f418faf481a227931b6"},{"fixed":"3f7d3bbac8cd195d552945e79586ca5000f33280"},{"fixed":"71ae41bd1cb146a432a39f72010b48f45ad69463"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.2.5"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"3f7d3bbac8cd195d552945e79586ca5000f33280"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"71ae41bd1cb146a432a39f72010b48f45ad69463"}]},{"original_tag":"v1.2.5","range":[{"fixed":"81e45fbd8eabbb95f7ed1f418faf481a227931b6"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.2.1","v1.2.0","v0.9.27","v0.9.26"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62298.json","vanir_signatures":[{"target":{"file":"skeletons/OPEN_TYPE_xer.c","function":"OPEN_TYPE_xer_put"},"deprecated":false,"digest":{"function_hash":"13015191878215896459783098840742724621","length":2413},"id":"CVE-2026-62298-1174ca34","signature_type":"Function","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/81e45fbd8eabbb95f7ed1f418faf481a227931b6"},{"deprecated":false,"digest":{"function_hash":"78101356857506126874197160640168060306","length":2104},"id":"CVE-2026-62298-1ce32a18","signature_type":"Function","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463","target":{"file":"skeletons/OPEN_TYPE_uper.c","function":"OPEN_TYPE_uper_get"}},{"digest":{"line_hashes":["310681313054541207231706257569516534988","45437455069968802164572878260388629928","329079760556204759367147624919846821491","13231783779805731223399168090943214495"],"threshold":0.9},"id":"CVE-2026-62298-2959cca4","signature_type":"Line","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280","target":{"file":"skeletons/OPEN_TYPE_ber.c"},"deprecated":false},{"source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280","target":{"file":"skeletons/OPEN_TYPE_jer.c"},"deprecated":false,"digest":{"line_hashes":["310681313054541207231706257569516534988","108538855437591641212783310690621053893","229142601134674443159046987373190088974","1158193587716908045275155289499994534"],"threshold":0.9},"id":"CVE-2026-62298-2ce70d33","signature_type":"Line","signature_version":"v1"},{"digest":{"function_hash":"78101356857506126874197160640168060306","length":2104},"id":"CVE-2026-62298-3134c968","signature_type":"Function","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463","target":{"function":"OPEN_TYPE_aper_get","file":"skeletons/OPEN_TYPE_aper.c"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"323324330275762731916098778215644699015","length":2176},"id":"CVE-2026-62298-84372d49","signature_type":"Function","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280","target":{"file":"skeletons/OPEN_TYPE_oer.c","function":"OPEN_TYPE_oer_get"}},{"digest":{"line_hashes":["259008983208463705533289860024148926486","26275145016705300758295523864805585812","308600188648669609705082781927283059252","289973968600593206007338212972104621182"],"threshold":0.9},"id":"CVE-2026-62298-9d5da9d7","signature_type":"Line","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/81e45fbd8eabbb95f7ed1f418faf481a227931b6","target":{"file":"skeletons/OPEN_TYPE_xer.c"},"deprecated":false},{"digest":{"threshold":0.9,"line_hashes":["310681313054541207231706257569516534988","108538855437591641212783310690621053893","229142601134674443159046987373190088974","1158193587716908045275155289499994534"]},"id":"CVE-2026-62298-9dbd3980","signature_type":"Line","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463","target":{"file":"skeletons/OPEN_TYPE_uper.c"},"deprecated":false},{"source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280","target":{"function":"OPEN_TYPE_jer_get","file":"skeletons/OPEN_TYPE_jer.c"},"deprecated":false,"digest":{"function_hash":"120618965894283395671101506927299812656","length":3225},"id":"CVE-2026-62298-a3b900f2","signature_type":"Function","signature_version":"v1"},{"target":{"file":"skeletons/OPEN_TYPE_ber.c","function":"OPEN_TYPE_ber_get"},"deprecated":false,"digest":{"length":2180,"function_hash":"116933594275997264655393617225094414057"},"id":"CVE-2026-62298-bc0f67be","signature_type":"Function","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280"},{"source":"https://github.com/mouse07410/asn1c/commit/81e45fbd8eabbb95f7ed1f418faf481a227931b6","target":{"function":"CHOICE_encode_xer","file":"skeletons/constr_CHOICE_xer.c"},"deprecated":false,"digest":{"function_hash":"257575869780944520605390084862248166446","length":1431},"id":"CVE-2026-62298-e0cf1b88","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463","target":{"file":"skeletons/OPEN_TYPE_aper.c"},"deprecated":false,"digest":{"line_hashes":["310681313054541207231706257569516534988","108538855437591641212783310690621053893","229142601134674443159046987373190088974","1158193587716908045275155289499994534"],"threshold":0.9},"id":"CVE-2026-62298-e5a5cafa","signature_type":"Line","signature_version":"v1"},{"id":"CVE-2026-62298-e7508cb9","signature_type":"Line","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280","target":{"file":"skeletons/OPEN_TYPE_oer.c"},"deprecated":false,"digest":{"line_hashes":["310681313054541207231706257569516534988","45437455069968802164572878260388629928","329079760556204759367147624919846821491","13231783779805731223399168090943214495"],"threshold":0.9}},{"digest":{"line_hashes":["292928498630800169036308676483566884752","122447681226445229074300251950995579988","125117561560074664466744477583281916921","79825164500603518039969954045460083247"],"threshold":0.9},"id":"CVE-2026-62298-ee81fa9b","signature_type":"Line","signature_version":"v1","source":"https://github.com/mouse07410/asn1c/commit/81e45fbd8eabbb95f7ed1f418faf481a227931b6","target":{"file":"skeletons/constr_CHOICE_xer.c"},"deprecated":false}],"vanir_signatures_modified":"2026-11-01T07:17:57Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N"}]}