CVE-2015-5299
The shadow_copy2_get_shadow_copy_data function in modules/vfs_shadow_copy2.c in Samba 3.x and 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3 does not verify that the DIRECTORY_LIST access right has been granted, which allows remote attackers to access snapshots by visiting a shadow copy directory.
What to do
Likely to be exploited: EPSS gives a 14% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | samba | Fixed | 2:4.3.3+dfsg-1ubuntu1 | UBUNTU-CVE-2015-5299 |
| Ubuntu 14.04 | samba | Fixed | 2:4.1.6+dfsg-1ubuntu2.14.04.11 | UBUNTU-CVE-2015-5299 |
| Debian 14 | samba | Fixed | 2:4.1.22+dfsg-1 | DEBIAN-CVE-2015-5299 |
| Debian 13 | samba | Fixed | 2:4.1.22+dfsg-1 | DEBIAN-CVE-2015-5299 |
| Debian 12 | samba | Fixed | 2:4.1.22+dfsg-1 | DEBIAN-CVE-2015-5299 |
| Red Hat Enterprise Linux 7 | ctdb | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | ctdb-devel | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | ctdb-tests | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | libsmbclient | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | libwbclient | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | libwbclient-devel | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-client | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-client-libs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-common | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-common-libs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-common-tools | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-dc | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-dc-libs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-devel | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-libs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-pidl | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-python | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-test | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-test-devel | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-test-libs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-winbind | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Fixed | 0:4.2.3-11.el7_2 | RHSA-2016:0006 |
| Red Hat Enterprise Linux 6 | libsmbclient | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-client | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-common | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-doc | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-glusterfs | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-swat | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-winbind | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Fixed | 0:3.6.23-24.el6_7 | RHSA-2016:0011 |
| Red Hat Enterprise Linux 6 | samba4 | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-client | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-common | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-dc | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-devel | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-libs | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-pidl | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-python | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-swat | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-test | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-winbind | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Fixed | 0:4.0.0-67.el6_7.rc4 | RHSA-2016:0010 |
| Red Hat Enterprise Linux 5 | samba | Not affected | ||
| Red Hat Enterprise Linux 5 | samba3x | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 4 | samba | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174391.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00042.html (vendor-advisory)
- http://www.ubuntu.com/usn/USN-2855-2 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2016-01/msg00002.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00019.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00020.html (vendor-advisory)
References
- http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174391.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00042.html
- http://www.ubuntu.com/usn/USN-2855-2
- http://lists.opensuse.org/opensuse-security-announce/2016-01/msg00002.html
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00019.html
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00020.html
- http://www.securityfocus.com/bid/79729
- http://lists.opensuse.org/opensuse-security-announce/2016-01/msg00017.html
- http://lists.opensuse.org/opensuse-security-announce/2015-12/msg00032.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174076.html
- https://git.samba.org/?p=samba.git%3Ba=commit%3Bh=675fd8d771f9d43e354dba53ddd9b5483ae0a1d7
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00047.html
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05115993
- http://www.securitytracker.com/id/1034493
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.