MatrixSSL contains multiple vulnerabilities

2016-10-11T00:00:00
ID VU:396440
Type cert
Reporter CERT
Modified 2016-10-14T00:00:00

Description

Overview

MatrixSSL, version 3.8.5 and earlier, contains heap overflow, out-of-bounds read, and unallocated memory free operation vulnerabilities.

Description

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

The Subject Alt Name field of X.509 certificates is not properly parsed. A specially crafted certificate may result in a heap-based buffer overflow and arbitrary code execution.

CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer - CVE-2016-6891

The ASN.1 Bit Field is not properly parsed. A specially crafted certificate may lead to a denial of service condition due to an out of bounds read in memory.

CWE-590: Free of Memory not on the Heap - CVE-2016-6892

The x509FreeExtensions() function does not properly parse X.509 certificates. A specially crafted certificate may cause a free operation on unallocated memory, resulting in a denial of service condition.

The CVSS score below describes CVE-2016-6890. For more information about these vulnerabilities, contact the vendor at support@matrixssl.com or refer to the vendor release notes and the researcher's blog.


Impact

By causing a server to parse a specially crafted X.509 certificate, a remote, unauthenticated attacker may be able to create a denial of service condition or execute arbitrary code in the context of the SSL stack.


Solution

Apply an update

The vendor has released version 3.8.6 to address these issues. Developers of embedded devices using MatrixSSL should provide firmware updates implementing the fix. Users in general should update to the latest release.


Vendor Information

Vendor| Status| Date Notified| Date Updated
---|---|---|---
MatrixSSL| | 26 Aug 2016| 11 Oct 2016
CoreOS| | 11 Oct 2016| 13 Oct 2016
Lenovo| | 11 Oct 2016| 14 Oct 2016
ACCESS| | 11 Oct 2016| 11 Oct 2016
Alcatel-Lucent| | 11 Oct 2016| 11 Oct 2016
Apple| | 11 Oct 2016| 11 Oct 2016
Arch Linux| | 11 Oct 2016| 11 Oct 2016
Arista Networks, Inc.| | 11 Oct 2016| 11 Oct 2016
Aruba Networks| | 11 Oct 2016| 11 Oct 2016
AT&T;| | 11 Oct 2016| 11 Oct 2016
Avaya, Inc.| | 11 Oct 2016| 11 Oct 2016
Barracuda Networks| | 11 Oct 2016| 11 Oct 2016
Belkin, Inc.| | 11 Oct 2016| 11 Oct 2016
Blue Coat Systems| | 11 Oct 2016| 11 Oct 2016
Brocade Communication Systems| | 11 Oct 2016| 11 Oct 2016
If you are a vendor and your product is affected, let us know.

CVSS Metrics

Group | Score | Vector
---|---|---
Base | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C
Temporal | 7.8 | E:POC/RL:OF/RC:C
Environmental | 5.9 | CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

  • <https://github.com/matrixssl/matrixssl/blob/master/CHANGES.md>
  • <http://www.tripwire.com/state-of-security/security-data-protection/cyber-security/flawed-matrixssl-code-highlights-need-for-better-iot-update-practices/>
  • <http://www.matrixssl.org/blog/releases/matrixssl_3_8_6>
  • <https://cwe.mitre.org/data/definitions/122.html>
  • <https://cwe.mitre.org/data/definitions/119.html>
  • <https://cwe.mitre.org/data/definitions/590.html>

Credit

Thanks to Craig Young of Tripwire for reporting these vulnerabilities.

This document was written by Joel Land.

Other Information