Vulnerability Note VU#790839

Objective Systems ASN1C generates code that contains a heap overflow vulnerability

Original Release date: 19 Jul 2016 | Last revised: 26 Aug 2016

Overview

ASN.1 is a standard representation of data for networking and telecommunications applications. Objective System's ASN1C compiler generates C and C++ code that may be vulnerable to heap overflow.

Description

CWE-122: Heap-based Buffer Overflow - CVE-2016-5080

ASN1C is used to generate high-level-language code from ASN.1 syntax. According to the reporter, the generated C and C++ code from ASN1C may be vulnerable to heap overflow in the generated heap manager's rtxMemHeapAlloc function. It is currently unclear if a similar vulnerability exists in other output languages such as Java. and C#.

A remote unauthenticated attacker may be able to exploit the heap overflow to execute arbitrary code on the underlying system, but the availability of this exploit depends on whether the application utilizes the rtxMemHeapAlloc function in an unsafe way. In particular, the application would likely need to process ASN.1 data from untrusted sources to be vulnerable. Developers making use of ASN1C in their products should audit their code to determine if their application is vulnerable. The CVSS score below reflects a worst-case scenario, and may not apply to all instances.

The researcher has more information available in a security advisory.

Impact

The impact may vary depending on how the vulnerable code is used in an application. In worst case, an application that utilizes ASN.1 data from untrusted sources may be exploited by a remote unauthenticated attacker to execute arbitrary code with permissions of the application (typically root/SYSTEM).

Solution

Apply an update

Objective Systems has released a hotfix for the ASN1C 7.0.1.x series to correct this flaw. Customers using the vulnerable features should contact Objective Systems directly to request the hotfix. Customers may also alternately use a different heap manager, or edit the generated code by hand to remove the heap overflow.

ASN1C version 7.0.2 will contain the fix for all customers, but its release date is currently not set.

Vendor Information (Learn More)

The vendors listed below were primarily sourced from Objective Systems' customer list. The CERT/CC has no further evidence that any particular vendor is impacted unless marked Affected; vendors are encouraged to reach out to us to clarify their status.

VendorStatusDate NotifiedDate Updated
Objective SystemsAffected-20 Jun 2016
Check Point Software TechnologiesNot Affected-29 Jul 2016
Hewlett Packard EnterpriseNot Affected20 Jun 201601 Jul 2016
HoneywellNot Affected20 Jun 201607 Jul 2016
Huawei TechnologiesNot Affected20 Jun 201629 Jul 2016
Juniper NetworksNot Affected26 Aug 201626 Aug 2016
QUALCOMM IncorporatedNot Affected20 Jun 201622 Aug 2016
SiemensNot Affected19 Jul 201620 Jul 2016
Alcatel-LucentUnknown20 Jun 201620 Jun 2016
AT&TUnknown20 Jun 201620 Jun 2016
BAE SystemsUnknown19 Jul 201619 Jul 2016
Booz Allen HamiltonUnknown19 Jul 201619 Jul 2016
BroadcomUnknown20 Jun 201620 Jun 2016
BTUnknown20 Jun 201620 Jun 2016
CiscoUnknown20 Jun 201620 Jun 2016
If you are a vendor and your product is affected, let us know.View More »

CVSS Metrics (Learn More)

Group Score Vector
Base 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C
Temporal 7.1 E:U/RL:TF/RC:C
Environmental 5.4 CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

Credit

Thanks to Lucas Molas and Ivan Arce of Programa STIC at the Fundación Sadosky for researching and coordinating this vulnerability.

This document was written by Garret Wassermann.

Other Information

  • CVE IDs: CVE-2016-5080
  • Date Public: 18 Jul 2016
  • Date First Published: 19 Jul 2016
  • Date Last Updated: 26 Aug 2016
  • Document Revision: 52

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.