CVE Vulnerabilities

CVE-2010-0787

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

Published: Mar 02, 2010 | Modified: Nov 07, 2023
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
RedHat/V3
Ubuntu

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

Name Vendor Start Version End Version
Samba Samba 3.0.22 (including) 3.0.22 (including)
Samba Samba 3.0.28a (including) 3.0.28a (including)
Samba Samba 3.2.3 (including) 3.2.3 (including)
Samba Samba 3.4.0 (including) 3.4.0 (including)
Samba Samba 3.4.5 (including) 3.4.5 (including)

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