CVE Vulnerabilities

CVE-2010-0787

Improper Link Resolution Before File Access ('Link Following')

Published: Mar 02, 2010 | Modified: Apr 11, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
1.7 LOW
AV:L/AC:L/Au:S/C:N/I:N/A:P
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

client/mount.cifs.c in mount.cifs in smbfs in Samba 3.0.22, 3.0.28a, 3.2.3, 3.3.2, 3.4.0, and 3.4.5 allows local users to mount a CIFS share on an arbitrary mountpoint, and gain privileges, via a symlink attack on the mountpoint directory file.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

NameVendorStart VersionEnd Version
SambaSamba3.0.22 (including)3.0.22 (including)
SambaSamba3.0.28a (including)3.0.28a (including)
SambaSamba3.2.3 (including)3.2.3 (including)
SambaSamba3.4.0 (including)3.4.0 (including)
SambaSamba3.4.5 (including)3.4.5 (including)
Red Hat Enterprise Linux 4RedHatsamba-0:3.0.33-0.34.el4*
Red Hat Enterprise Linux 5RedHatsamba3x-0:3.5.4-0.70.el5*
Red Hat Enterprise Linux 5RedHatsamba-0:3.0.33-3.29.el5_7.4*
SambaUbuntudapper*
SambaUbuntudevel*
SambaUbuntuhardy*
SambaUbuntuintrepid*
SambaUbuntujaunty*
SambaUbuntukarmic*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References