Logo
componentsamba
Name
samba
Version
4.14.14
Type
library
Description
-
Licenses
GPL-3.0-or-later & LGPL-3.0-or-later & GPL-2.0-or-later
PURL
-
CPE
cpe:2.3:*:samba:samba:4.14.14:*:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
master
4.23.5
scarthgap
4.19.9

Patches#


#
Title
Author
Resolve
1
CVE-2023-34968: mdssvc: add missing "kMDSStoreMetaScopes"
Ralph Boehme <slow@samba.org>
CVE-2023-34968
2
CVE-2023-34967: CI: add a test for type checking of
Ralph Boehme <slow@samba.org>
CVE-2023-34967
3
CVE-2023-34968: smbtorture: remove response blob allocation
Ralph Boehme <slow@samba.org>
CVE-2023-34968
4
CVE-2023-34967: mdssvc: add type checking to
Ralph Boehme <slow@samba.org>
CVE-2023-34967
5
Don't check xsltproc manpages
Bian Naimeng <biannm@cn.fujitsu.com>
6
gsskrb5: CVE-2022-3437 Check for overflow in
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
7
CVE-2023-34968: mdssvc: remove response blob allocation
Ralph Boehme <slow@samba.org>
CVE-2023-34968
8
CVE-2018-14628: s4:dsdb: remove unused code in
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
9
CVE-2023-42669 s4-rpc_server: Disable rpcecho server by
Andrew Bartlett <abartlet@samba.org>
CVE-2023-42669
10
CVE-2023-34968: mdssvc: return a fake share path Instead of
Ralph Boehme <slow@samba.org>
CVE-2023-34968
11
Lifted from gentoo and ported to 4.4.5
Khem Raj <raj.khem@gmail.com>
12
gsskrb5: CVE-2022-3437 Check buffer length against overflow
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
13
samba: build dnsserver_common code
Joe Slater <joe.slater@windriver.com>
14
Add options to configure the use of libbsd
Peter Kjellerstedt <pkj@axis.com>
15
CVE-2023-34968: mdscli: use correct TALLOC memory context
Ralph Boehme <slow@samba.org>
CVE-2023-34968
16
Add config option without-valgrind
Changqing Li <changqing.li@windriver.com>
17
gsskrb5: CVE-2022-3437 Don't pass NULL pointers to memcpy()
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
18
gsskrb5: CVE-2022-3437 Check the result of
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
19
CVE-2023-34968: mdscli: return share relative paths The next
Ralph Boehme <slow@samba.org>
CVE-2023-34968
20
CVE-2023-34968: mdssvc: introduce an allocating wrapper to
Ralph Boehme <slow@samba.org>
CVE-2023-34968
21
samba: fix musl lib without innetgr
Changqing Li <changqing.li@windriver.com>
22
CVE-2023-34968: mdssvc: cache and reuse stat info in struct
Ralph Boehme <slow@samba.org>
CVE-2023-34968
23
CVE-2022-45142: gsskrb5: fix accidental logic inversions
Helmut Grohne <helmut@...divi.de>
CVE-2022-45142
24
CVE-2023-0922 set default ldap client sasl wrapping to seal
Rob van der Linde <rob@catalyst.net.nz>
CVE-2023-0922
25
CVE-2018-14628: python:descriptor: add
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
26
gsskrb5: CVE-2022-3437 Pass correct length to
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
27
samba: cmocka.h: fix musl libc conflicting types error
Changqing Li <changqing.li@windriver.com>
28
smbtorture: skip test case tfork_cmd_send
Yi Zhao <yi.zhao@windriver.com>
29
CVE-2018-14628: s4:setup: set the correct
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
30
CVE-2018-14628: python:descriptor: let samba-tool dbcheck fix
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
31
gsskrb5: CVE-2022-3437 Use constant-time memcmp() for arcfour
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
32
CVE-2023-34968: mdssvc: switch to doing an early return
Archana Polampalli <archana.polampalli@windriver.com>
CVE-2023-34968
33
CVE-2023-34968: mdscli: remove response blob allocation
Ralph Boehme <slow@samba.org>
34
gsskrb5: CVE-2022-3437 Use constant-time memcmp() in
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
35
Fix pyext_PATTERN for cross compilation
Yi Zhao <yi.zhao@windriver.com>
36
CVE-2018-14628: python:provision: make
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
37
Musl does not have _r versions of getent() and getpwent()
Khem Raj <raj.khem@gmail.com>
38
CVE-2023-4091: smbd: use open_access_mask for access check in
Ralph Boehme <slow@samba.org>
CVE-2023-4091
39
Patch #39
Unknown
40
CVE-2023-34968: rpcclient: remove response blob allocation
Ralph Boehme <slow@samba.org>
CVE-2023-34968
41
gsskrb5: CVE-2022-3437 Avoid undefined behaviour in
Joseph Sutton <josephsutton@catalyst.net.nz>
CVE-2022-3437
42
CVE-2022-2127: ntlm_auth: cap lanman response length value
Ralph Boehme <slow@samba.org>
CVE-2022-2127
43
CVE-2023-34966: CI: test for sl_unpack_loop()
Ralph Boehme <slow@samba.org>
CVE-2023-34966
44
lib/wind: find_normalize read past end of array
Jeffrey Altman <jaltman@secure-endpoints.com>
CVE-2022-41916
45
CVE-2023-34966: mdssvc: harden sl_unpack_loop()
Ralph Boehme <slow@samba.org>
CVE-2023-34966
46
CVE-2023-4091: smbtorture: test overwrite dispositions on
Ralph Boehme <slow@samba.org>
CVE-2023-4091
47
CVE-2018-14628: dbchecker: use get_deletedobjects_descriptor
Stefan Metzmacher <metze@samba.org>
CVE-2018-14628
48
do not import target module while cross compile
Changqing Li <changqing.li@windriver.com>
49
spnego: CVE-2021-44758 send_reject when no mech selected
Nicolas Williams <nico@twosigma.com>
CVE-2021-44758

Vulnerabilities#


Name
Analysis
Description
Exploitable
A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters. This vulnerability allows an attacker to achieve remote command execution on the affected system. This issue primarily affects non-standard configurations where the "check password script" is used with %u and the samba-dcerpcd service is started as a system service.
Exploitable
A flaw was found in Samba’s vfs_worm module. The module is intended to provide write-once, read-many (WORM) protections by preventing modification of files after a configurable grace period. Due to insufficient validation during rename operations, an authenticated user with write access to a share could overwrite a protected file by renaming a newly created file over the existing WORM-protected file.
Exploitable
A heap-based Buffer Overflow flaw was discovered in Samba. It could allow a remote, authenticated attacker to exploit this vulnerability to cause a denial of service.
Exploitable
A flaw was found in Samba. It is susceptible to a vulnerability where multiple incompatible RPC listeners can be initiated, causing disruptions in the AD DC service. When Samba's RPC server experiences a high load or unresponsiveness, servers intended for non-AD DC purposes (for example, NT4-emulation "classic DCs") can erroneously start and compete for the same unix domain sockets. This issue leads to partial query responses from the AD DC, causing issues such as "The procedure number is out of range" when using tools like Active Directory Users. This flaw allows an attacker to disrupt AD DC services.
Patched
A vulnerability was found in Samba's "rpcecho" development server, a non-Windows RPC server used to test Samba's DCE/RPC stack elements. This vulnerability stems from an RPC function that can be blocked indefinitely. The issue arises because the "rpcecho" service operates with only one worker in the main RPC task, allowing calls to the "rpcecho" server to be blocked for a specified time, causing service disruptions. This disruption is triggered by a "sleep()" call in the "dcesrv_echo_TestSleep()" function under specific conditions. Authenticated users or attackers can exploit this vulnerability to make calls to the "rpcecho" server, requesting it to block for a specified duration, effectively disrupting most services and leading to a complete denial of service on the AD DC. The DoS affects all other services as "rpcecho" runs in the main RPC task.
Exploitable
A design flaw was found in Samba's DirSync control implementation, which exposes passwords and secrets in Active Directory to privileged users and Read-Only Domain Controllers (RODCs). This flaw allows RODCs and users possessing the GET_CHANGES right to access all attributes, including sensitive secrets and passwords. Even in a default setup, RODC DC accounts, which should only replicate some passwords, can gain access to all domain secrets, including the vital krbtgt, effectively eliminating the RODC / DC distinction. Furthermore, the vulnerability fails to account for error conditions (fail open), like out-of-memory situations, potentially granting access to secret attributes, even under low-privileged attacker influence.
Patched
A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.
Exploitable
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, allowing a client to send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory. If an attacker or client managed to send a pipe name resolving to an external service using an existing Unix domain socket, it could potentially lead to unauthorized access to the service and consequential adverse events, including compromise or service crashes.
Patched
A path disclosure vulnerability was found in Samba. As part of the Spotlight protocol, Samba discloses the server-side absolute path of shares, files, and directories in the results for search queries. This flaw allows a malicious client or an attacker with a targeted RPC request to view the information that is part of the disclosed path.
Patched
A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets, one encoded data structure is a key-value style dictionary where the keys are character strings, and the values can be any of the supported types in the mdssvc protocol. Due to a lack of type checking in callers of the dalloc_value_for_key() function, which returns the object associated with a key, a caller may trigger a crash in talloc_get_size() when talloc detects that the passed-in pointer is not a valid talloc pointer. With an RPC worker process shared among multiple client connections, a malicious client or attacker can trigger a process crash in a shared RPC mdssvc worker process, affecting all other clients this worker serves.
Patched
An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets sent by the client, the core unmarshalling function sl_unpack_loop() did not validate a field in the network packet that contains the count of elements in an array-like structure. By passing 0 as the count value, the attacked function will run in an endless loop consuming 100% CPU. This flaw allows an attacker to issue a malformed RPC request, triggering an infinite loop, resulting in a denial of service condition.
Patched
The Samba AD DC administration tool, when operating against a remote LDAP server, will by default send new or reset passwords over a signed-only connection.
Exploitable
The fix in 4.6.16, 4.7.9, 4.8.4 and 4.9.7 for CVE-2018-10919 Confidential attribute disclosure vi LDAP filters was insufficient and an attacker may be able to obtain confidential BitLocker recovery keys from a Samba AD DC.
Patched
The fix for CVE-2022-3437 included changing memcmp to be constant time and a workaround for a compiler bug by adding "!= 0" comparisons to the result of memcmp. When these patches were backported to the heimdal-7.7.1 and heimdal-7.8.0 branches (and possibly other branches) a logic inversion sneaked in causing the validation of message integrity codes in gssapi/arcfour to be inverted.
Exploitable
Since the Windows Kerberos RC4-HMAC Elevation of Privilege Vulnerability was disclosed by Microsoft on Nov 8 2022 and per RFC8429 it is assumed that rc4-hmac is weak, Vulnerable Samba Active Directory DCs will issue rc4-hmac encrypted tickets despite the target server supporting better encryption (eg aes256-cts-hmac-sha1-96).
Exploitable
PAC parsing in MIT Kerberos 5 (aka krb5) before 1.19.4 and 1.20.x before 1.20.1 has integer overflows that may lead to remote code execution (in KDC, kadmind, or a GSS or Kerberos application server) on 32-bit platforms (which have a resultant heap-based buffer overflow), and cause a denial of service on other platforms. This occurs in krb5_pac_parse in lib/krb5/krb/pac.c. Heimdal before 7.7.1 has "a similar bug."
Patched
Heimdal is an implementation of ASN.1/DER, PKIX, and Kerberos. Versions prior to 7.7.1 are vulnerable to a denial of service vulnerability in Heimdal's PKI certificate validation library, affecting the KDC (via PKINIT) and kinit (via PKINIT), as well as any third-party applications using Heimdal's libhx509. Users should upgrade to Heimdal 7.7.1 or 7.8. There are no known workarounds for this issue.
Exploitable
Netlogon RPC Elevation of Privilege Vulnerability
Exploitable
Windows Kerberos Elevation of Privilege Vulnerability
Exploitable
Windows Kerberos RC4-HMAC Elevation of Privilege Vulnerability
Patched
A heap-based buffer overflow vulnerability was found in Samba within the GSSAPI unwrap_des() and unwrap_des3() routines of Heimdal. The DES and Triple-DES decryption routines in the Heimdal GSSAPI library allow a length-limited write buffer overflow on malloc() allocated memory when presented with a maliciously small packet. This flaw allows a remote user to send specially crafted malicious data to the application, possibly resulting in a denial of service (DoS) attack.
Exploitable
Samba does not validate the Validated-DNS-Host-Name right for the dNSHostName attribute which could permit unprivileged users to write it.
Patched
An out-of-bounds read vulnerability was found in Samba due to insufficient length checks in winbindd_pam_auth_crap.c. When performing NTLM authentication, the client replies to cryptographic challenges back to the server. These replies have variable lengths, and Winbind fails to check the lan manager response length. When Winbind is used for NTLM authentication, a maliciously crafted request can trigger an out-of-bounds read in Winbind, possibly resulting in a crash.
Exploitable
In Samba, GnuTLS gnutls_rnd() can fail and give predictable random values.
Patched
Heimdal before 7.7.1 allows attackers to cause a NULL pointer dereference in a SPNEGO acceptor via a preferred_mech_type of GSS_C_NO_OID and a nonzero initial_response value to send_accept.
Exploitable
All versions of Samba prior to 4.15.5 are vulnerable to a malicious client using a server symlink to determine if a file or directory exists in an area of the server file system not exported under the share definition. SMB1 with unix extensions has to be enabled in order for this attack to succeed.
Exploitable
MaxQueryDuration not honoured in Samba AD DC LDAP
Exploitable
A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.
Exploitable
A flaw was found in samba. A race condition in the password lockout code may lead to the risk of brute force attacks being successful if special conditions are met.
Patched
An information leak vulnerability was discovered in Samba's LDAP server. Due to missing access control checks, an authenticated but unprivileged attacker could discover the names and preserved attributes of deleted objects in the LDAP store.