Bug 1281326 (CVE-2015-5330)

Summary: CVE-2015-5330 samba, libldb: remote memory read in the Samba LDAP server
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, carnil, gdeschner, jarrpa, jhrozek, jrusnack, nlevinki, rfortier, sbose, security-response-team, sgirijan, sisharma, slong, smohan, ssaha, vbellur
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libldb 1.1.24, samba 4.1.22, samba 4.2.7, samba 4.3.3 Doc Type: Bug Fix
Doc Text:
A memory-read flaw was found in the way the libldb library processed LDB DN records with a null byte. An authenticated, remote attacker could use this flaw to read heap-memory pages from the server.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-08 12:18:53 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: 1290712, 1290713, 1290714, 1290715, 1290727, 1291376, 1292070    
Bug Blocks: 1281327    

Description Adam Mariš 2015-11-12 10:11:10 UTC
It was reported that when adding an LDB DN to the database, that if a \00 (null byte) is used, remote memory can be read due to a combination of talloc_strdup() and a length assignment.

Upstream bug:

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

Comment 3 Huzaifa S. Sidhpurwala 2015-12-10 06:28:17 UTC
Acknowledgements:

Red Hat would like to thank the Samba project for reporting this issue. Upstream acknowledges Douglas Bagnall as the original reporter.

Comment 7 Siddharth Sharma 2015-12-16 12:10:06 UTC
Created libldb tracking bugs for this issue:

Affects: fedora-all [bug 1292070]

Comment 8 Huzaifa S. Sidhpurwala 2015-12-17 04:10:11 UTC
External References:

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

Comment 10 Tomas Hoger 2015-12-17 15:18:30 UTC
The non-ldb samba fixes were applied in upstream versions 4.1.22, 4.2.7, and 4.3.3.

Comment 11 errata-xmlrpc 2016-01-08 01:13:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

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

Comment 12 errata-xmlrpc 2016-01-08 01:40:08 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 13 errata-xmlrpc 2016-01-08 09:13:52 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.1 for RHEL 6
  Red Hat Gluster Storage 3.1 for RHEL 7

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

Comment 14 errata-xmlrpc 2016-01-08 10:18:55 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.1 for RHEL 7

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

Comment 15 errata-xmlrpc 2016-01-08 10:19:33 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