portage-ng / portage / net-fs / samba / 4.23.12
portage-ng glsa
22 advisories reference net-fs/samba · none place version 4.23.12 in a vulnerable range
▸ GLSA 202402-28 Samba: Multiple Vulnerabilities this version unaffected high remote 2024-02-19

Multiple vulnerabilities have been discovered in Samba, the worst of which can lead to remote code execution.

Announced
2024-02-19
Revised
2024-02-19
Access
remote
Bugs
#891267 #910606 #915556
Advisory
https://security.gentoo.org/glsa/202402-28

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.18.9>= 4.18.9

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.18.9"

References

▸ GLSA 202309-06 Samba: Multiple Vulnerabilities this version unaffected high remote 2023-09-17

Multiple vulnerabilities have been discovered in Samba, the worst of which could result in root remote code execution.

Announced
2023-09-17
Revised
2023-09-17
Access
remote
Bugs
#820566 #821688 #830983 #832433 #861512 #866225 #869122 #878273 #880437 #886153 #903621 #905320 #910334
Advisory
https://security.gentoo.org/glsa/202309-06

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.18.4>= 4.18.4

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.18.4"

References

▸ GLSA 202105-22 Samba: Multiple vulnerabilities this version unaffected low local, remote 2021-05-26

Multiple vulnerabilities have been found in Samba, the worst of which could result in a Denial of Service condition.

Announced
2021-05-26
Revised
2021-05-26
Access
local, remote
Bugs
#778026 #786825
Advisory
https://security.gentoo.org/glsa/202105-22

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.13.8>= 4.13.8

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.13.8"

References

▸ GLSA 202012-24 Samba: Multiple vulnerabilities this version unaffected normal remote 2020-12-24

Multiple vulnerabilities have been found in Samba, the worst of which could result in a Denial of Service condition.

Announced
2020-12-24
Revised
2020-12-24
Access
remote
Bugs
#743433 #751724
Advisory
https://security.gentoo.org/glsa/202012-24

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.12.9>= 4.12.9

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.12.9"

References

▸ GLSA 202007-15 Samba: Multiple vulnerabilities this version unaffected normal remote 2020-07-26

Multiple vulnerabilities have been found in Samba, the worst of which could result in a Denial of Service condition.

Announced
2020-07-26
Revised
2020-07-26
Access
remote
Bugs
#719120 #730472
Advisory
https://security.gentoo.org/glsa/202007-15

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.11.11>= 4.11.11

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.11.11"

References

▸ GLSA 202003-52 Samba: Multiple vulnerabilities version not in range normal remote 2020-03-25

Multiple vulnerabilities have been found in Samba, the worst of which could lead to remote code execution.

Announced
2020-03-25
Revised
2020-03-25
Access
remote
Bugs
#664316 #672140 #686036 #693558 #702928 #706144
Advisory
https://security.gentoo.org/glsa/202003-52

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.11.6>= 4.9.18 (revision), >= 4.10.13 (revision), >= 4.11.6 (revision)

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could possibly execute arbitrary code, cause a Denial of Service condition, conduct a man-in-the-middle attack, or obtain sensitive information.

Workaround

There is no known workaround at this time.

Resolution

All Samba 4.9.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.9.18"

All Samba 4.10.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.10.13"

All Samba 4.11.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.11.6"

References

▸ GLSA 201805-07 Samba: Multiple vulnerabilities this version unaffected normal remote 2018-05-22

Multiple vulnerabilities have been found in Samba, the worst of which may allow remote execution of arbitrary code.

Announced
2018-05-22
Revised
2018-05-22
Access
remote
Bugs
#588262 #619516 #639024 #650382
Advisory
https://security.gentoo.org/glsa/201805-07

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.5.16>= 4.5.16

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could possibly execute arbitrary code, cause a Denial of Service condition, conduct a man-in-the-middle attack, or obtain sensitive information.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.5.16"

References

▸ GLSA 201612-47 Samba: Multiple vulnerabilities this version unaffected normal local, remote 2016-12-24

Multiple vulnerabilities have been found in Samba, the worst of which may allow execution of arbitrary code with root privileges.

Announced
2016-12-24
Revised
2016-12-24
Access
local, remote
Bugs
#568432 #578004
Advisory
https://security.gentoo.org/glsa/201612-47

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 4.2.11>= 4.2.11

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in samba. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could possibly execute arbitrary code with root privileges, cause a Denial of Service condition, conduct a man-in-the-middle attack, obtain sensitive information, or bypass file permissions.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-4.2.11"

References

▸ GLSA 201502-15 Samba: Multiple vulnerabilities this version unaffected high local, remote 2015-02-25

Multiple vulnerabilities have been found in Samba, the worst of which allowing a context-dependent attacker to bypass intended file restrictions, cause a Denial of Service or execute arbitrary code.

Announced
2015-02-25
Revised
2015-02-25
Access
local, remote
Bugs
#479868 #491070 #493664 #504494 #511764 #514676 #541182
Advisory
https://security.gentoo.org/glsa/201502-15

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.6.25>= 3.6.25

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

A context-dependent attacker may be able to execute arbitrary code, cause a Denial of Service condition, bypass intended file restrictions, or obtain sensitive information.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.6.25"

References

▸ GLSA 201206-22 Samba: Multiple vulnerabilities this version unaffected high local, remote 2012-06-24

Multiple vulnerabilities have been found in Samba, the worst of which may allow execution of arbitrary code with root privileges.

Announced
2012-06-24
Revised
2012-06-24
Access
local, remote
Bugs
#290633 #310105 #323785 #332063 #337295 #356917 #382263 #386375 #405551 #411487 #414319
Advisory
https://security.gentoo.org/glsa/201206-22

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.5.15>= 3.5.15

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could possibly execute arbitrary code with root privileges, cause a Denial of Service condition, take ownership of shared files, or bypass file permissions. Furthermore, a local attacker may be able to cause a Denial of Service condition or obtain sensitive information in a Samba credentials file.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.5.15"

References

▸ GLSA 200903-07 Samba: Data disclosure this version unaffected normal remote 2009-03-07

A missing boundary check in Samba might lead to the disclosure of memory contents.

Announced
2009-03-07
Revised
2009-03-07
Access
remote
Bugs
#247620
Advisory
https://security.gentoo.org/glsa/200903-07

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.33>= 3.0.33

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Samba does not properly check memory boundaries when handling trans, rans2, and nttrans requests.

Impact

A remote attacker could send specially crafted requests to a Samba daemon, leading to the disclosure of arbitrary memory or to a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.33"

References

▸ GLSA 200805-23 Samba: Heap-based buffer overflow this version unaffected normal remote 2008-05-29

A heap-based buffer overflow vulnerability was found in Samba, allowing for the execution of arbitrary code.

Announced
2008-05-29
Revised
2008-05-29
Access
remote
Bugs
#222299
Advisory
https://security.gentoo.org/glsa/200805-23

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.28a-r1>= 3.0.28a-r1

Background

Samba is a suite of SMB and CIFS client/server programs.

Description

Alin Rad Pop (Secunia Research) reported a vulnerability in Samba within the receive_smb_raw() function in the file lib/util_sock.c when parsing SMB packets, possibly leading to a heap-based buffer overflow via an overly large SMB packet.

Impact

A remote attacker could possibly exploit this vulnerability by enticing a user to connect to a malicious server or by sending specially crafted packets to an nmbd server configured as a local or domain master browser, resulting in the execution of arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.28a-r1"

References

▸ GLSA 200712-10 Samba: Execution of arbitrary code this version unaffected high remote 2007-12-10

Samba contains a buffer overflow vulnerability potentially resulting in the execution of arbitrary code.

Announced
2007-12-10
Revised
2007-12-10
Access
remote
Bugs
#200773
Advisory
https://security.gentoo.org/glsa/200712-10

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.28>= 3.0.28

Background

Samba is a suite of SMB and CIFS client/server programs for UNIX.

Description

Alin Rad Pop (Secunia Research) discovered a boundary checking error in the send_mailslot() function which could lead to a stack-based buffer overflow.

Impact

A remote attacker could send a specially crafted "SAMLOGON" domain logon packet, possibly leading to the execution of arbitrary code with elevated privileges. Note that this vulnerability is exploitable only when domain logon support is enabled in Samba, which is not the case in Gentoo's default configuration.

Workaround

Disable domain logon in Samba by setting "domain logons = no" in the "global" section of your smb.conf and restart Samba.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.28"

References

▸ GLSA 200711-29 Samba: Execution of arbitrary code this version unaffected high remote 2007-11-20

Samba contains two buffer overflow vulnerabilities potentially resulting in the execution of arbitrary code.

Announced
2007-11-20
Revised
2007-12-05 (revision 3)
Access
remote
Bugs
#197519
Advisory
https://security.gentoo.org/glsa/200711-29

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.27a>= 3.0.27a

Background

Samba is a suite of SMB and CIFS client/server programs for UNIX.

Description

Two vulnerabilities have been reported in nmbd. Alin Rad Pop (Secunia Research) discovered a boundary checking error in the reply_netbios_packet() function which could lead to a stack-based buffer overflow (CVE-2007-5398). The Samba developers discovered a boundary error when processing GETDC logon requests also leading to a buffer overflow (CVE-2007-4572).

Impact

To exploit the first vulnerability, a remote unauthenticated attacker could send specially crafted WINS "Name Registration" requests followed by a WINS "Name Query" request. This might lead to execution of arbitrary code with elevated privileges. Note that this vulnerability is exploitable only when WINS server support is enabled in Samba. The second vulnerability could be exploited by sending specially crafted "GETDC" mailslot requests, but requires Samba to be configured as a Primary or Backup Domain Controller. It is not believed the be exploitable to execute arbitrary code.

Workaround

To work around the first vulnerability, disable WINS support in Samba by setting "wins support = no" in the "global" section of your smb.conf and restart Samba.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.27a"

The first vulnerability (CVE-2007-5398) was already fixed in Samba 3.0.26a-r2.

References

▸ GLSA 200705-15 Samba: Multiple vulnerabilities this version unaffected high remote 2007-05-15

Samba contains multiple vulnerabilities potentially resulting in the execution of arbitrary code with root privileges.

Announced
2007-05-15
Revised
2007-05-15
Access
remote
Bugs
#177029
Advisory
https://security.gentoo.org/glsa/200705-15

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.24-r2>= 3.0.24-r2

Background

Samba is a suite of SMB and CIFS client/server programs for UNIX.

Description

Samba contains a logical error in the smbd daemon when translating local SID to user names (CVE-2007-2444). Furthermore, Samba contains several bugs when parsing NDR encoded RPC parameters (CVE-2007-2446). Lastly, Samba fails to properly sanitize remote procedure input provided via Microsoft Remote Procedure Calls (CVE-2007-2447).

Impact

A remote attacker could exploit these vulnerabilities to gain root privileges via various vectors.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.24-r2"

References

▸ GLSA 200702-01 Samba: Multiple vulnerabilities this version unaffected normal remote 2007-02-13

Multiple flaws exist in the Samba suite of programs, the most serious of which could result in the execution of arbitrary code.

Announced
2007-02-13
Revised
2007-02-13
Access
remote
Bugs
#165549
Advisory
https://security.gentoo.org/glsa/200702-01

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.24>= 3.0.24

Background

Samba is a suite of SMB and CIFS client/server programs for UNIX.

Description

A format string vulnerability exists in the VFS module when handling AFS file systems and an infinite loop has been discovered when handling file rename operations.

Impact

A user with permission to write to a shared AFS file system may be able to compromise the smbd process and execute arbitrary code with the permissions of the daemon. The infinite loop could be abused to consume excessive resources on the smbd host, denying service to legitimate users.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.24"

References

▸ GLSA 200607-10 Samba: Denial of Service vulnerability this version unaffected normal remote 2006-07-25

A large number of share connection requests could cause a Denial of Service within Samba.

Announced
2006-07-25
Revised
2006-07-25
Access
remote
Bugs
#139369
Advisory
https://security.gentoo.org/glsa/200607-10

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.22-r3>= 3.0.22-r3

Background

Samba is a freely available SMB/CIFS implementation which allows seamless interoperability of file and print services to other SMB/CIFS clients.

Description

During an internal audit the Samba team discovered that a flaw in the way Samba stores share connection requests could lead to a Denial of Service.

Impact

By sending a large amount of share connection requests to a vulnerable Samba server, an attacker could cause a Denial of Service due to memory consumption.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.22-r3"

References

▸ GLSA 200412-13 Samba: Integer overflow this version unaffected high remote 2004-12-17

Samba contains a bug that could lead to remote execution of arbitrary code.

Announced
2004-12-17
Revised
2004-12-17
Access
remote
Bugs
#73943
Advisory
https://security.gentoo.org/glsa/200412-13

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*<= 3.0.9>= 3.0.9-r1

Background

Samba is a freely available SMB/CIFS implementation which allows seamless interoperability of file and print services to other SMB/CIFS clients.

Description

Samba contains a bug when unmarshalling specific MS-RPC requests from clients.

Impact

A remote attacker may be able to execute arbitrary code with the permissions of the user running Samba, which could be the root user.

Workaround

There is no known workaround at this time.

Resolution

All samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.9-r1"

References

▸ GLSA 200411-21 Samba: Multiple vulnerabilities this version unaffected normal remote 2004-11-11

Samba is vulnerable to a buffer overflow that could lead to execution of arbitrary code (CAN-2004-0882). Another flaw in Samba may allow a remote attacker to cause a Denial of Service by excessive consumption of CPU cycles (CAN-2004-0930).

Announced
2004-11-11
Revised
2004-11-15 (revision 2)
Access
remote
Bugs
#70429
Advisory
https://security.gentoo.org/glsa/200411-21

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.8>= 3.0.8, < 3.0

Background

Samba is a freely available SMB/CIFS implementation which allows seamless interoperability of file and print services to other SMB/CIFS clients.

Description

Samba fails to do proper bounds checking when handling TRANSACT2_QFILEPATHINFO replies. Additionally an input validation flaw exists in ms_fnmatch.c when matching filenames that contain wildcards.

Impact

An attacker may be able to execute arbitrary code with the permissions of the user running Samba. A remote attacker may also be able to cause an abnormal consumption of CPU resources, resulting in slower performance of the server or even a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All Samba users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.8"

References

▸ GLSA 200409-16 Samba: Denial of Service vulnerabilities this version unaffected normal remote 2004-09-13

Two Denial of Service vulnerabilities have been found and fixed in Samba.

Announced
2004-09-13
Revised
2004-09-13
Access
remote
Advisory
https://security.gentoo.org/glsa/200409-16

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*< 3.0.7>= 3.0.7, < 3.0

Background

Samba is a freely available SMB/CIFS implementation which allows seamless interoperability of file and print services to other SMB/CIFS clients. smbd and nmbd are two daemons used by the Samba server.

Description

There is a defect in smbd's ASN.1 parsing. A bad packet received during the authentication request could throw newly-spawned smbd processes into an infinite loop (CAN-2004-0807). Another defect was found in nmbd's processing of mailslot packets, where a bad NetBIOS request could crash the nmbd process (CAN-2004-0808).

Impact

A remote attacker could send specially crafted packets to trigger both defects. The ASN.1 parsing issue can be exploited to exhaust all available memory on the Samba host, potentially denying all service to that server. The nmbd issue can be exploited to crash the nmbd process, resulting in a Denial of Service condition on the Samba server.

Workaround

There is no known workaround at this time.

Resolution

All Samba 3.x users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=net-fs/samba-3.0.7"
# emerge ">=net-fs/samba-3.0.7"

References

▸ GLSA 200407-21 Samba: Multiple buffer overflows this version unaffected high remote 2004-07-29

Two buffer overflows vulnerabilities were found in Samba, potentially allowing the remote execution of arbitrary code.

Announced
2004-07-29
Revised
2004-07-29 (revision 2)
Access
remote
Bugs
#57962
Advisory
https://security.gentoo.org/glsa/200407-21

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*<= 3.0.4-r1>= 3.0.5

Background

Samba is a package which allows *nix systems to act as file servers for Windows computers. It also allows *nix systems to mount shares exported by a Samba/CIFS/Windows server. The Samba Web Administration Tool (SWAT) is a web-based configuration tool part of the Samba package.

Description

Evgeny Demidov found a buffer overflow in SWAT, located in the base64 data decoder used to handle HTTP basic authentication (CAN-2004-0600). The same flaw is present in the code used to handle the sambaMungedDial attribute value, when using the ldapsam passdb backend. Another buffer overflow was found in the code used to support the 'mangling method = hash' smb.conf option (CAN-2004-0686). Note that the default Samba value for this option is 'mangling method = hash2' which is not vulnerable.

Impact

The SWAT authentication overflow could be exploited to execute arbitrary code with the rights of the Samba daemon process. The overflow in the sambaMungedDial handling code is not thought to be exploitable. The buffer overflow in 'mangling method = hash' code could also be used to execute arbitrary code on vulnerable configurations.

Workaround

Users disabling SWAT, not using ldapsam passdb backends and not using the 'mangling method = hash' option are not vulnerable.

Resolution

All Samba users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=net-fs/samba-3.0.5"
# emerge ">=net-fs/samba-3.0.5"

References

▸ GLSA 200404-21 Multiple Vulnerabilities in Samba this version unaffected normal local 2004-04-29

There is a bug in smbfs which may allow local users to gain root via a setuid file on a mounted Samba share. Also, there is a tmpfile symlink vulnerability in the smbprint script distributed with Samba.

Announced
2004-04-29
Revised
2004-04-29
Access
local
Bugs
#41800 #45965
Advisory
https://security.gentoo.org/glsa/200404-21

Affected packages

PackageArchVulnerableUnaffected
net-fs/samba*<= 3.0.2a>= 3.0.2a-r2

Background

Samba is a package which allows UNIX systems to act as file servers for Windows computers. It also allows UNIX systems to mount shares exported by a Samba/CIFS/Windows server. smbmount is a program in the Samba package which allows normal users on a UNIX system to mount remote shares. smbprint is an example script included in the Samba package which can be used to facilitate network printing.

Description

Two vulnerabilities have been discovered in Samba. The first vulnerability allows a local user who has access to the smbmount command to gain root. An attacker could place a setuid-root binary on a Samba share/server he or she controls, and then use the smbmount command to mount the share on the target UNIX box. The remote Samba server must support UNIX extensions for this to work. This has been fixed in version 3.0.2a.

The second vulnerability is in the smbprint script. By creating a symlink from /tmp/smbprint.log, an attacker could cause the smbprint script to write to an arbitrary file on the system. This has been fixed in version 3.0.2a-r2.

Impact

Local users with access to the smbmount command may gain root access. Also, arbitrary files may be overwritten using the smbprint script.

Workaround

To workaround the setuid bug, remove the setuid bits from the /usr/bin/smbmnt, /usr/bin/smbumount and /usr/bin/mount.cifs binaries. However, please note that this workaround will prevent ordinary users from mounting remote SMB and CIFS shares.

To work around the smbprint vulnerability, set "debug=no" in the smbprint configuration.

Resolution

All users should update to the latest version of the Samba package.

The following commands will perform the upgrade:

# emerge sync

# emerge -pv ">=net-fs/samba-3.0.2a-r2"
# emerge ">=net-fs/samba-3.0.2a-r2"

Those who are using Samba's password database also need to run the following command:

# pdbedit --force-initialized-passwords

Those using LDAP for Samba passwords also need to check the sambaPwdLastSet attribute on each account, and ensure it is not 0.

References