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
1.7 LOW
AV:L/AC:L/Au:S/C:N/I:N/A:P
RedHat/V3
Ubuntu
MEDIUM

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)
Red Hat Enterprise Linux 4 RedHat samba-0:3.0.33-0.34.el4 *
Red Hat Enterprise Linux 5 RedHat samba3x-0:3.5.4-0.70.el5 *
Red Hat Enterprise Linux 5 RedHat samba-0:3.0.33-3.29.el5_7.4 *
Samba Ubuntu dapper *
Samba Ubuntu devel *
Samba Ubuntu hardy *
Samba Ubuntu intrepid *
Samba Ubuntu jaunty *
Samba Ubuntu karmic *

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