CVE-2017-2619: Race Condition

Published Mar 6, 2017
·
Updated

As per upstream advisory:

All versions of Samba prior to 4.6.1, 4.5.7, 4.4.11 are vulnerable to a malicious client using a symlink race to allow access to areas of the server file system not exported under the share definition.

Samba uses the realpath() system call to ensure when a client requests access to a pathname that it is under the exported share path on the server file system.

Clients that have write access to the exported part of the file system via SMB1 unix extensions or NFS to create symlinks can race the server by renaming a realpath() checked path and then creating a symlink. If the client wins the race it can cause the server to access the new symlink target after the exported share path check has been done. This new symlink target can point to anywhere on the server file system.

This is a difficult race to win, but theoretically possible. Note that the proof of concept code supplied wins the race reliably only when the server is slowed down using the strace utility running on the server. Exploitation of this bug has not been seen in the wild.

Mitigation:

Add the parameter:

unix extensions = no

to the [global] section of your smb.conf and restart smbd. This prevents SMB1 clients from creating symlinks on the exported file system using SMB1.

However, if the same region of the file system is also exported using NFS, NFS clients can create symlinks that potentially can also hit the race condition. For non-patched versions of Samba we recommend only exporting areas of the file system by either SMB or NFS, not both.

Acknowledgements:

Name: the Samba project Upstream: Jann Horn (Google)

Other sources

Samba before versions 4.6.1, 4.5.7 and 4.4.11 are vulnerable to a malicious client using a symlink race to allow access to areas of the server file system not exported under the share definition.

Affected Software

10 affected componentsFixes available
debian/samba
2:4.9.5+dfsg-5+deb10u32:4.9.5+dfsg-5+deb10u42:4.13.13+dfsg-1~deb11u52:4.17.11+dfsg-0+deb12u12:4.17.12+dfsg-0+deb12u12:4.19.1+dfsg-42:4.19.2+dfsg-1
redhat/samba<4.6.1
4.6.1
redhat/samba<4.5.7
4.5.7
redhat/samba<4.4.11
4.4.11
Samba Samba<4.4.12
Samba Samba>=4.5.0<4.5.7
Samba Samba>=4.6.0<4.6.1
Debian Debian Linux=8.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0

Event History

Mar 12, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionWeakness

Frequently Asked Questions

1

What is the severity of CVE-2017-2619?

CVE-2017-2619 is classified as a high severity vulnerability due to its potential to allow unauthorized access to restricted areas of the server file system.

2

How do I fix CVE-2017-2619?

To fix CVE-2017-2619, upgrade Samba to versions 4.6.1, 4.5.7, 4.4.11, or later.

3

Which versions of Samba are affected by CVE-2017-2619?

All versions of Samba prior to 4.6.1, 4.5.7, and 4.4.11 are affected by CVE-2017-2619.

4

What is the impact of CVE-2017-2619?

The impact of CVE-2017-2619 includes the risk of malicious clients gaining access to file system areas that should be restricted.

5

Is there a workaround for CVE-2017-2619 until I can upgrade?

There are no known effective workarounds for CVE-2017-2619, so upgrading to the fixed versions is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203