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
Acknowledgements: Red Hat would like to thank the Samba project for reporting this issue. Upstream acknowledges Douglas Bagnall as the original reporter.
Created libldb tracking bugs for this issue: Affects: fedora-all [bug 1292070]
External References: https://www.samba.org/samba/security/CVE-2015-5330.html
Upstream commits tagged with CVE-2015-5330. There are multiple commits for libldb using this CVE id: https://git.samba.org/?p=samba.git;a=commitdiff;h=7f51ec8c4ed9ba1f53d722e44fb6fb3cde933b72 https://git.samba.org/?p=samba.git;a=commitdiff;h=0454b95657846fcecf0f51b6f1194faac02518bd https://git.samba.org/?p=samba.git;a=commitdiff;h=f36cb71c330a52106e36028b3029d952257baf15 However, there are additional commits tagged with this CVE affecting samba code rather than libldb: https://git.samba.org/?p=samba.git;a=commitdiff;h=ba5dbda6d0174a59d221c45cca52ecd232820d48 https://git.samba.org/?p=samba.git;a=commitdiff;h=a118d4220ed85749c07fb43c1229d9e2fecbea6b https://git.samba.org/?p=samba.git;a=commitdiff;h=538d305de91e34a2938f5f219f18bf0e1918763f
The non-ldb samba fixes were applied in upstream versions 4.1.22, 4.2.7, and 4.3.3.
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
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
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
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
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