Bug 1210225 (CVE-2015-3008)

Summary: CVE-2015-3008 asterisk: TLS Certificate Common name NULL byte exploit
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: itamar, jeff, lmadsen, rbryant
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: asterisk 1.8.32.3, asterisk 11.17.1, asterisk 12.8.2, asterisk 13.3.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:40:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1210226, 1210227    
Bug Blocks:    

Description Martin Prpič 2015-04-09 08:38:42 UTC
The following flaw was found in asterisk:

When Asterisk registers to a SIP TLS device and and verifies the server, Asterisk will accept signed certificates that match a common name other than the one Asterisk is expecting if the signed certificate has a common name containing a null byte after the portion of the common name that Asterisk expected. For example, if Asterisk is trying to register to www.domain.com, Asterisk will accept certificates of the form www.domain.com\x00www.someotherdomain.com - for more information on this exploit, see https://fotisl.com/blog/2009/10/the-null-certificate-prefix-bug/

This issue is fixed in asterisk versions: 1.8.32.3, 11.17.1, 12.8.2, 13.3.2 

Upstream advisory:

http://downloads.asterisk.org/pub/security/AST-2015-003.pdf

Upstream issue:

https://issues.asterisk.org/jira/browse/ASTERISK-24847

Patch:

https://issues.asterisk.org/jira/secure/attachment/52082/asterisk-null-in-cn.patch

Comment 1 Martin Prpič 2015-04-09 08:39:11 UTC
Created asterisk tracking bugs for this issue:

Affects: fedora-all [bug 1210226]
Affects: epel-6 [bug 1210227]

Comment 2 Fedora Update System 2015-07-20 19:48:51 UTC
asterisk-1.8.32.3-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2015-07-21 08:16:22 UTC
asterisk-11.17.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2015-07-21 08:17:37 UTC
asterisk-13.3.2-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Product Security DevOps Team 2019-06-08 02:40:45 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.