Red Hat Security Advisory: samba3x security update
🔗 CVE IDs covered (1)
📋 Description
CVE-2017-7494 — samba: Loading shared modules from any path in the system leading to RCE (SambaCry)
🎯 Affected products32
- Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-0:3.6.23-14.el5_11.src as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-client-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-client-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-client-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-common-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-common-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-common-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-debuginfo-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-debuginfo-0:3.6.23-14.el5_11.s390 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-debuginfo-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-debuginfo-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-doc-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-doc-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-doc-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-domainjoin-gui-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-domainjoin-gui-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-domainjoin-gui-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-swat-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-swat-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-swat-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-0:3.6.23-14.el5_11.s390 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-0:3.6.23-14.el5_11.s390x as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-0:3.6.23-14.el5_11.x86_64 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-devel-0:3.6.23-14.el5_11.i386 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- samba3x-winbind-devel-0:3.6.23-14.el5_11.s390 as a component of Red Hat Enterprise Linux Server (v. 5 ELS)
- +2 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing this update, the smb service will be restarted automatically. Workaround: Any of the following: 1. SELinux is enabled by default and our default policy prevents loading of modules from outside of samba's module directories and therefore blocks the exploit 2. Mount the filesystem which is used by samba for its writable share using "noexec" option. 3. Add the parameter: nt pipe support = no to the [global] section of your smb.conf and restart smbd. This prevents clients from accessing any named pipe endpoints. Note this can disable some expected functionality for Windows clients.
🔗 References (6)
- selfhttps://access.redhat.com/errata/RHSA-2017:1272
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://www.samba.org/samba/security/CVE-2017-7494.html
- externalhttps://access.redhat.com/security/vulnerabilities/3034621
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1450347
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_1272.json