Red Hat Security Advisory: samba security and bug fix update
🔗 CVE IDs covered (2)
📋 Description
CVE-2016-2125 — samba: Unconditional privilege delegation to Kerberos servers in trusted realms CVE-2016-2126 — samba: Flaws in Kerberos PAC validation can trigger privilege elevation
🎯 Affected products163
- Red Hat Enterprise Linux Desktop (v. 6)
- Red Hat Enterprise Linux Desktop Optional (v. 6)
- Red Hat Enterprise Linux HPC Node (v. 6)
- Red Hat Enterprise Linux HPC Node Optional (v. 6)
- Red Hat Enterprise Linux Server (v. 6)
- Red Hat Enterprise Linux Server Optional (v. 6)
- Red Hat Enterprise Linux Workstation (v. 6)
- Red Hat Enterprise Linux Workstation Optional (v. 6)
- libsmbclient-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Desktop (v. 6)
- libsmbclient-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux HPC Node Optional (v. 6)
- libsmbclient-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Workstation (v. 6)
- libsmbclient-0:3.6.23-41.el6.ppc as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.ppc64 as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.s390 as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.s390x as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux Desktop (v. 6)
- libsmbclient-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux HPC Node Optional (v. 6)
- libsmbclient-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux Server (v. 6)
- libsmbclient-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux Workstation (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Desktop Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux HPC Node Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Server Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.i686 as a component of Red Hat Enterprise Linux Workstation Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.ppc as a component of Red Hat Enterprise Linux Server Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.ppc64 as a component of Red Hat Enterprise Linux Server Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.s390 as a component of Red Hat Enterprise Linux Server Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.s390x as a component of Red Hat Enterprise Linux Server Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux Desktop Optional (v. 6)
- libsmbclient-devel-0:3.6.23-41.el6.x86_64 as a component of Red Hat Enterprise Linux HPC Node Optional (v. 6)
- +133 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: The following mitigation is suggested by upstream. The samba-tool command and the AD DC mode honours the undocumented "gensec_gssapi:delegation=no" option in the [global] section of the smb.conf file. Controlling Kerberos forwarding =============================== In the Active Directory world it's possible for administrators to limit the delegation. User and computer objects can both act as Kerberos users and also as Kerberos services. Both types of objects have an attribute called 'userAccountControl' which is a bitmask that controls the behavior of the account. The following three values have impact on possible delegation: 0x00100000: UF_NOT_DELEGATED: The UF_NOT_DELEGATED can be used to disable the ability to get forwardable TGT for the account. It means the KDC will respond with an error if the client asks for the forwardable ticket. The client typically gives up and removes the GSS_C_DELEG_FLAG flag and continues without passing delegated credentials. Administrators can use this to disable possible delegation for the most privileged accounts (e.g. administrator accounts). 0x00080000: UF_TRUSTED_FOR_DELEGATION If the UF_TRUSTED_FOR_DELEGATION is set on an account a KDC will include the OK_AS_DELEGATE flag in a granted service ticket. If the client application uses just GSS_C_DELEG_POLICY_FLAG (instead of GSS_C_DELEG_FLAG) gssapi/Kerberos libraries typically only include delegated credentials when the service ticket includes the OK_AS_DELEGATE flag. Administrators can use this to control which services will get delegated credentials, for example if the service runs in a trusted environment and actually requires the presence of delegated credentials. 0x01000000: UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION The UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION is not really relevant for this CVE and just listed here for completeness. This flag is relevant for the S4U2Proxy feature, where a service can ask the KDC for a proxied service ticket which can impersonate users to other services.
🔗 References (12)
- selfhttps://access.redhat.com/errata/RHSA-2017:0662
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/6.9_Release_Notes/index.html
- externalhttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/6.9_Technical_Notes/index.html
- externalhttps://www.samba.org/samba/security/CVE-2016-2125.html
- externalhttps://www.samba.org/samba/security/CVE-2016-2126.html
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1327697
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1372611
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1403114
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1403115
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1413672
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0662.json