Bug 1288451 (CVE-2015-7540)

Summary: CVE-2015-7540 samba: DoS to AD-DC due to insufficient checking of asn1 memory allocation
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aavati, asn, gdeschner, jrivera, jrusnack, ksiddiqu, nlevinki, rfortier, sbose, security-response-team, sgirijan, slong, smohan, ssaha, vbellur
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20151216,reported=20151203,source=upstream,cvss2=4.3/AV:N/AC:M/Au:N/C:N/I:N/A:P,rhel-5/samba=notaffected,rhel-5/samba3x=notaffected,rhel-6/samba=notaffected,rhel-6/samba4=affected,rhel-7/samba=affected,rhes-3.0/samba=notaffected,rhes-3.1/samba=affected,fedora-all/samba=affected,cwe=CWE-770
Fixed In Version: samba 4.1.22, samba 4.2.0 Doc Type: Bug Fix
Doc Text:
A denial of service flaw was found in the LDAP server provided by the AD DC in the Samba process daemon. A remote attacker could exploit this flaw by sending a specially crafted packet, which could cause the server to consume an excessive amount of memory and crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-08 12:19:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1290708, 1290709, 1290710, 1290711, 1290727, 1292069    
Bug Blocks: 1281327, 1288454    

Description Adam Mariš 2015-12-04 09:40:33 UTC
A denial-of-service vulnerability for the AD-DC due to insuffiecient checking on asn1 memory allocation was reported.

Upstream bug:

https://bugzilla.samba.org/show_bug.cgi?id=9187

Comment 1 Adam Mariš 2015-12-04 11:58:42 UTC
Acknowledgments:

Red Hat would like to thank the Samba project for reporting this issue.

Comment 5 Siddharth Sharma 2015-12-16 12:08:58 UTC
Created samba tracking bugs for this issue:

Affects: fedora-all [bug 1292069]

Comment 6 Huzaifa S. Sidhpurwala 2015-12-17 04:10:41 UTC
External References:

https://www.samba.org/samba/security/CVE-2015-7540.html

Comment 7 Tomas Hoger 2015-12-17 15:34:30 UTC
Upstream fixes as applied to 4.1.22:

https://git.samba.org/?p=samba.git;a=commitdiff;h=530d50a1abdcdf4d1775652d4c456c1274d83d8d
https://git.samba.org/?p=samba.git;a=commitdiff;h=9d989c9dd7a5b92d0c5d65287935471b83b6e884

Upstream advisory also indicates that newer samba versions (4.2+) were already fixed in Sep 2014.

Comment 9 errata-xmlrpc 2016-01-07 17:06:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2016:0010 https://rhn.redhat.com/errata/RHSA-2016-0010.html

Comment 10 errata-xmlrpc 2016-01-08 01:40:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2016:0006 https://rhn.redhat.com/errata/RHSA-2016-0006.html

Comment 11 errata-xmlrpc 2016-01-08 10:19:41 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.1 for RHEL 6

Via RHSA-2016:0015 https://rhn.redhat.com/errata/RHSA-2016-0015.html