As per samba upstream advisory: Samba contains an RPC endpoint emulating the Windows registry service API. One of the requests, "winreg_SaveKey", is susceptible to a path/symlink traversal vulnerability. Unprivileged users can use it to create a new registry hive file anywhere they have unix permissions to create a new file within a Samba share. If they are able to create symlinks on a Samba share, they can create a new registry hive file anywhere they have write access, even outside a Samba share definition. Note - existing share restrictions such as "read only" or share ACLs do *not* prevent new registry hive files being written to the filesystem. A file may be written under any share definition wherever the user has unix permissions to create a file. Existing files cannot be overwritten using this vulnerability, only new registry hive files can be created, however the presence of existing files with a specific name can be detected. Samba writes or detects the file as the authenticated user, not as root.
Acknowledgments: Name: Michael Hanselmann
openshift-online-3 does not provision samba endpoints.
Note: This affects not only Linux <> Windows configurations but may also affect Linux <> Linux configurations using Samba as RPC endpoints. (since winreg_SaveKey RPC call is also implemented on the client side)
Mitigation: Either turn off SMB1 by setting the global parameter: 'min protocol = SMB2' or if SMB1 is required turn off unix extensions by setting the global parameter: 'unix extensions = no' in the smb.conf file.
External References: https://www.samba.org/samba/security/CVE-2019-3880.html
Created samba tracking bugs for this issue: Affects: fedora-all [bug 1697717]
Statement: This issue affects the version of samba shipped with Red Hat Gluster Storage 3, as it contains the vulnerable functionality.
This issue has been addressed in the following products: Red Hat Gluster Storage 3.4 for RHEL 7 Via RHSA-2019:1966 https://access.redhat.com/errata/RHSA-2019:1966
This issue has been addressed in the following products: Red Hat Gluster Storage 3.4 for RHEL 6 Via RHSA-2019:1967 https://access.redhat.com/errata/RHSA-2019:1967
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2019-3880
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2019:2099 https://access.redhat.com/errata/RHSA-2019:2099
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2019:3582 https://access.redhat.com/errata/RHSA-2019:3582