portage-ng / portage / net-misc / smb4k / 4.0.6
portage-ng glsa
3 advisories reference net-misc/smb4k · none place version 4.0.6 in a vulnerable range
▸ GLSA 201705-14 Smb4K: Arbitrary command execution as root this version unaffected normal local 2017-05-26

A vulnerability in Smb4K could allow local attackers to execute commands as root.

Announced
2017-05-26
Revised
2017-05-26 (revision 2)
Access
local
Bugs
#618106
Advisory
https://security.gentoo.org/glsa/201705-14

Affected packages

PackageArchVulnerableUnaffected
net-misc/smb4k*< 1.2.3-r1>= 1.2.3-r1

Background

Smb4K is a SMB/CIFS (Windows) share browser for KDE.

Description

Smb4k contains a logic flaw in which mount helper binary does not properly verify the mount command it is being asked to run.

Impact

A local user can execute commands with the root privilege due to the mount helper being installed as suid.

Workaround

There is no known workaround at this time.

Resolution

All Smb4K users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/smb4k-1.2.3-r1:4"

References

▸ GLSA 200703-09 Smb4K: Multiple vulnerabilities this version unaffected high local 2007-03-09

Multiple vulnerabilities have been identified in Smb4K.

Announced
2007-03-09
Revised
2007-03-09
Access
local
Bugs
#156152
Advisory
https://security.gentoo.org/glsa/200703-09

Affected packages

PackageArchVulnerableUnaffected
net-misc/smb4k*< 0.6.10a>= 0.6.10a

Background

Smb4K is a SMB/CIFS (Windows) share browser for KDE.

Description

Kees Cook of the Ubuntu Security Team has identified multiple vulnerabilities in Smb4K.

  • The writeFile() function of smb4k/core/smb4kfileio.cpp makes insecure usage of temporary files.
  • The writeFile() function also stores the contents of the sudoers file with incorrect permissions, allowing for the file's contents to be world-readable.
  • The createLockFile() and removeLockFile() functions improperly handle lock files, possibly allowing for a race condition in file handling.
  • The smb4k_kill utility distributed with Smb4K allows any user in the sudoers group to kill any process on the system.
  • Lastly, there is the potential for multiple stack overflows when any Smb4K utility is used with the sudo command.

Impact

A local attacker could gain unauthorized access to arbitrary files via numerous attack vectors. In some cases to obtain this unauthorized access, an attacker would have to be a member of the sudoers list.

Workaround

There is no known workaround at this time.

Resolution

All Smb4K users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/smb4k-0.6.10a"

References

▸ GLSA 200511-15 Smb4k: Local unauthorized file access this version unaffected high local 2005-11-18

A vulnerability has been identified that allows unauthorized access to the contents of /etc/sudoers and /etc/super.tab files.

Announced
2005-11-18
Revised
2005-11-18
Access
local
Bugs
#111089
Advisory
https://security.gentoo.org/glsa/200511-15

Affected packages

PackageArchVulnerableUnaffected
net-misc/smb4k*< 0.6.4>= 0.6.4

Background

Smb4K is a SMB/CIFS share browser for KDE.

Description

A vulnerability leading to unauthorized file access has been found. A pre-existing symlink from /tmp/sudoers and /tmp/super.tab to a textfile will cause Smb4k to write the contents of these files to the target of the symlink, as Smb4k does not check for the existence of these files before writing to them.

Impact

An attacker could acquire local privilege escalation by adding username(s) to the list of sudoers.

Workaround

There is no known workaround at this time.

Resolution

All smb4k users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/smb4k-0.6.4"

References