CVE-2026-62298

asn1c: ASAN crash with decode of open types

Published Oct 30, 2026 CVSS 4.0 · 0 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw lies in the open‑type decoding routines of the asn1c compiler. Before version 1.2.5 the code performs a conditional null check on a member pointer but then unconditionally dereferences that pointer to calculate an offset. When the pointer is not initialized, the decoder performs null‑pointer arithmetic and a subsequent memory read, triggering a segmentation fault. This fault results in a crash of any program that uses the generated ASN.1 definitions, effectively denying service to that component.

Affected Systems

The vulnerability affects the open‑source ASN.1 compiler released by mouse07410. Any build of asn1c earlier than release 1.2.5 is susceptible. Systems that link against modules compiled with these earlier versions, or that parse ASN.1 data containing open types—such as E2AP, which uses APER encoding—are directly impacted. Upstream references note that BER and OER encodings are also affected.

Risk and Exploitability

No EPSS score and no KEV entry are available, so the probability of exploitation is unknown. The attack surface requires an attacker to supply crafted ASN.1 data that exercises the open‑type decode path, which the affected code handles in a deterministic and local manner. Although the flaw does not allow arbitrary code execution or data disclosure, the resulting crash can interrupt critical services, posing a moderate operational risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the asn1c compiler to version 1.2.5 or later, which removes the unsafe dereference in all open‑type decoding paths.
  • Recompile all ASN.1 modules in affected applications with the updated compiler to ensure that the defect is no longer present in the generated code.
  • Validate incoming ASN.1 payloads against the schema and implement bounds checks in the consuming application to guard against malformed data and to detect unexpected crashes early.

Generated by OpenCVE AI on October 30, 2026 at 21:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mouse07410
Mouse07410 asn1c
Vendors & Products Mouse07410
Mouse07410 asn1c
Type Values Removed Values Added
Description 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.
Title asn1c: ASAN crash with decode of open types
Weaknesses CWE-476
References
Metrics cvssV4_0

{'score': 0, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 10:15 PM
Reserved
Jul 13, 2026, 6:37 PM
Status
Deferred
Published
Oct 30, 2026, 7:18 PM
Modified
Oct 30, 2026, 11:17 PM