1 =============================
2 Release Notes for Samba 4.6.1
4 =============================
7 This is a security release in order to address the following defect:
9 o CVE-2017-2619 (Symlink race allows access outside share definition)
16 All versions of Samba prior to 4.6.1, 4.5.7, 4.4.11 are vulnerable to
17 a malicious client using a symlink race to allow access to areas of
18 the server file system not exported under the share definition.
20 Samba uses the realpath() system call to ensure when a client requests
21 access to a pathname that it is under the exported share path on the
24 Clients that have write access to the exported part of the file system
25 via SMB1 unix extensions or NFS to create symlinks can race the server
26 by renaming a realpath() checked path and then creating a symlink. If
27 the client wins the race it can cause the server to access the new
28 symlink target after the exported share path check has been done. This
29 new symlink target can point to anywhere on the server file system.
31 This is a difficult race to win, but theoretically possible. Note that
32 the proof of concept code supplied wins the race reliably only when
33 the server is slowed down using the strace utility running on the
34 server. Exploitation of this bug has not been seen in the wild.
40 o Jeremy Allison <jra@samba.org>
41 * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
44 o Ralph Boehme <slow@samba.org>
45 * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
49 #######################################
50 Reporting bugs & Development Discussion
51 #######################################
53 Please discuss this release on the samba-technical mailing list or by
54 joining the #samba-technical IRC channel on irc.freenode.net.
56 If you do report problems then please try to send high quality
57 feedback. If you don't provide vital information to help us track down
58 the problem then you will probably be ignored. All bug reports should
59 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
60 database (https://bugzilla.samba.org/).
63 ======================================================================
64 == Our Code, Our Bugs, Our Responsibility.
66 ======================================================================
69 Release notes for older releases follow:
70 ----------------------------------------
72 ==============================
73 Release Notes for Samba 4.6.0
75 ==============================
78 This is the first stable release of Samba 4.6.
79 Please read the release notes carefully before upgrading.
87 We discovered that the majority of users have an invalid or incorrect
88 ID mapping configuration. We implemented checks in the 'testparm' tool to
89 validate the ID mapping configuration. You should run it and check if it prints
90 any warnings or errors after upgrading! If it does you should fix them. See the
91 'IDENTITY MAPPING CONSIDERATIONS' section in the smb.conf manpage.
92 There are some ID mapping backends which are not allowed to be used for the
93 default backend. Winbind will no longer start if an invalid backend is
94 configured as the default backend.
96 To avoid problems in future we advise all users to run 'testparm' after
97 changing the smb.conf file!
99 vfs_fruit option "fruit:resource" spelling correction
100 -----------------------------------------------------
102 Due to a spelling error in the vfs_fruit option parsing for the "fruit:resource"
103 option, users who have set this option in their smb.conf were still using the
104 default setting "fruit:resource = file" as the parser was looking for the string
105 "fruit:ressource" (two "s").
107 After upgrading to this Samba version 4.6, you MUST either remove the option
108 from your smb.conf or set it to the default "fruit:resource = file", otherwise
109 your macOS clients will not be able to access the resource fork data.
111 This version Samba 4.6 accepts both the correct and incorrect spelling, but the
112 next Samba version 4.7 will not accept the wrong spelling.
114 Users who were using the wrong spelling "ressource" with two "s" can keep the
115 setting, but are advised to switch to the correct spelling.
117 vfs_fruit Netatalk metadata xattr name on *BSD
118 ----------------------------------------------
120 Users on *BSD must rename the metadata xattr used by vfs_fruit when
121 using the default setting "fruit:metadata = netatalk".
123 Due to a glitch in the Samba xattr API compatibility layer for FreeBSD and a
124 mistake in vfs_fruit, vfs_fruit ended up using the wrong xattr name when
125 configured with "fruit:metadata = netatalk" (default). Instead of the correct
127 org.netatalk.Metadata
133 Starting with Samba 4.6 vfs_fruit will use the correct "org.netatalk.Metadata"
134 which means existing installations must rename this xattrs. For this purpose
135 Samba now includes a new tool `mvxattr`. See below for further details.
141 Kerberos client encryption types
142 --------------------------------
143 Some parts of Samba (most notably winbindd) perform Kerberos client
144 operations based on a Samba-generated krb5.conf file. A new
145 parameter, "kerberos encryption types" allows configuring the
146 encryption types set in this file, thereby allowing the user to
147 enforce strong or legacy encryption in Kerberos exchanges.
149 The default value of "all" is compatible with previous behavior, allowing
150 all encryption algorithms to be negotiated. Setting the parameter to "strong"
151 only allows AES-based algorithms to be negotiated. Setting the parameter to
152 "legacy" allows only RC4-HMAC-MD5 - the legacy algorithm for Active Directory.
153 This can solves some corner cases of mixed environments with Server 2003R2 and
158 Support for uploading printer drivers from newer Windows clients (Windows 10)
159 has been added until our implementation of [MS-PAR] protocol is ready.
160 Several issues with uploading different printing drivers have been addressed.
162 The OS Version for the printing server has been increased to announce
163 Windows Server 2003 R2 SP2. If a driver needs a newer version then you should
164 check the smb.conf manpage for details.
166 New option for owner inheritance
167 --------------------------------
168 The "inherit owner" smb.conf parameter instructs smbd to set the
169 owner of files to be the same as the parent directory's owner.
170 Up until now, this parameter could be set to "yes" or "no".
171 A new option, "unix only", enables this feature only for the UNIX owner
172 of the file, not affecting the SID owner in the Windows NT ACL of the
173 file. This can be used to emulate something very similar to folder quotas.
175 Multi-process Netlogon support
176 ------------------------------
178 The Netlogon server in the Samba AD DC can now run as multiple
179 processes. The Netlogon server is a part of the AD DC that handles
180 NTLM authentication on behalf of domain members, including file
181 servers, NTLM-authenticated web servers and 802.1x gateways. The
182 previous restriction to running as a single process has been removed,
183 and it will now run in the same process model as the rest of the
186 As part of this change, the NETLOGON service will now run on a distinct
187 TCP port, rather than being shared with all other RPC services (LSA,
190 New options for controlling TCP ports used for RPC services
191 -----------------------------------------------------------
193 The new 'rpc server port' option controls the default port used for
194 RPC services other than Netlogon. The Netlogon server honours instead
195 the 'rpc server port:netlogon' option. The default value for both
196 these options is the first available port including or after 1024.
198 AD LDAP and replication performance improvements
199 ------------------------------------------------
201 Samba's LDB (the database holding the AD directory tree, as seen via
202 LDAP) and our DRSUAPI replication code continues to improve,
203 particularly in respect to the handling of large numbers of objects or
206 * We now respect an 'uptodateness vector' which will dramatically
207 reduce the over-replication of links from new DCs.
209 * We have also made the parsing of on-disk linked attributes much
212 * We rely on ldb 1.1.28. This ldb version has improved memory
213 handling for ldb search results, improving poorly indexed and
214 unindexed search result processing speed by around 20%.
219 The samba-tool dns subcommand is now much more robust and can delete
220 records in a number of situations where it was not possible to do so
223 On the server side, DNS names are now more strictly validated.
228 * "ctdb event" is a new top-level command for interacting with event scripts
230 "ctdb event status" replaces "ctdb scriptstatus" - the latter is
231 maintained for backward compatibility but the output format has been
234 "ctdb event run" replaces "ctdb eventscript"
236 "ctdb event script enable" replaces "ctdb enablescript"
238 "ctdb event script disable" replaces "ctdb disablescript"
240 The new command "ctdb event script list" lists event scripts.
242 * CTDB's back-end for running event scripts has been replaced by a
243 separate, long-running daemon ctdbd_eventd.
245 * Running ctdb interactively will log to stderr
247 * CTDB logs now include process id for each process
249 * CTDB tags log messages differently. Changes include:
251 ctdb-recoverd: Messages from CTDB's recovery daemon
252 ctdb-recovery: Messages from CTDB database recovery
253 ctdb-eventd: Messages from CTDB's event daemon
254 ctdb-takeover: Messages from CTDB's public IP takeover subsystem
256 * The mapping between symbolic and numeric debug levels has changed
258 Configurations containing numeric debug levels should be updated.
259 Symbolic debug levels are recommended. See the DEBUG LEVEL section
260 of ctdb(7) for details.
262 * Tunable IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPs
264 See ctdb-tunables(7) for details.
266 * CTDB's configuration tunables should be consistently set across a cluster
268 This has always been the cases for most tunables but this fact is
271 * CTDB ships with recovery lock helper call-outs for etcd and Ceph RADOS
273 To build/install these, use the "--enable-etcd-reclock" and
274 "--enable-ceph-reclock" configure options.
279 winbind contains code that tries to emulate the group membership calculation
280 that domain controllers do when a user logs in. This group membership calculation
281 is a very complex process, in particular for domain trust relationship
282 situations. Also, in many scenarios it is impossible for winbind to
283 correctly do this calculation due to access restrictions in the
284 domains: winbind using its machine account simply does not have the
285 rights to ask for an arbitrary user's group memberships.
287 When a user logs in to a Samba server, the domain controller correctly
288 calculates the user's group memberships authoritatively and makes the
289 information available to the Samba server. This is the only reliable
290 way Samba can get informed about the groups a user is member of.
292 Because of its flakiness, the fallback group membership code is unwished,
293 and our code pathes try hard to only use of the group memberships
294 calculated by the domain controller.
296 However, a lot of admins rely on the fallback behavior in order to support
297 access for nfs access, ssh public key authentication and passwordless sudo.
299 That's the reason for changing this back between 4.6.0rc4 and 4.6.0
302 The winbind change to simplify the calculation of supplementary groups to make
303 it more reliable and predictable has been deferred to 4.7 or later.
305 This means that 'id <username>' without the user having logged in
306 previously works similar to 4.5.
308 winbind primary group and nss info
309 ----------------------------------
311 With 4.6, it will be possible to optionally use the primary group as
312 set in the "Unix Attributes" tab for the local unix token of a domain
313 user. Before 4.6, the Windows primary group was always chosen as
314 primary group for the local unix token.
316 To activate the unix primary group, set
318 idmap config <DOMAIN> : unix_primary_group = yes
322 idmap config <DOMAIN> : unix_nss_info = yes
324 to retrieve the home directory and login shell from the "Unix
325 Attributes" of the user. This supersedes the "winbind nss info"
326 parameter with a per-domain configuration option.
331 mvxattr is a simple utility to recursively rename extended attributes of all
332 files and directories in a directory tree.
334 Usage: mvxattr -s STRING -d STRING PATH [PATH ...]
335 -s, --from=STRING xattr source name
336 -d, --to=STRING xattr destination name
337 -l, --follow-symlinks follow symlinks, the default is to ignore them
338 -p, --print print files where the xattr got renamed
339 -v, --verbose print files as they are checked
340 -f, --force force overwriting of destination xattr
343 -?, --help Show this help message
344 --usage Display brief usage message
349 The idmap_hash module is marked as deprecated with this release and will be
350 removed in a future version. See the manpage of the module for details.
356 Parameter Name Description Default
357 -------------- ----------- -------
358 kerberos encryption types New all
359 inherit owner New option
360 fruit:resource Spelling correction
361 lsa over netlogon New (deprecated) no
362 rpc server port New 0
368 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.6#Release_blocking_bugs
371 CHANGES SINCE 4.6.0rc4
372 ======================
374 o Jeremy Allison <jra@samba.org>
375 * BUG 12592: Fix several issues found by covscan.
376 * BUG 12608: s3: smbd: Restart reading the incoming SMB2 fd when the send
379 o Ralph Boehme <slow@samba.org>
380 * BUG 12427: vfs_fruit doesn't work with fruit:metadata=stream.
381 * BUG 12526: vfs_fruit: Only veto AppleDouble files if "fruit:resource" is
383 * BUG 12604: vfs_fruit: Enabling AAPL extensions must be a global switch.
385 o Volker Lendecke <vl@samba.org>
386 * BUG 12612: Re-enable token groups fallback.
388 o Stefan Metzmacher <metze@samba.org>
389 * BUG 9048: Samba4 ldap error codes.
390 * BUG 12557: gensec:spnego: Add debug message for the failed principal.
391 * BUG 12605: s3:winbindd: Fix endless forest trust scan.
392 * BUG 12612: winbindd: Find the domain based on the sid within
393 wb_lookupusergroups_send().
395 o Andreas Schneider <asn@samba.org>
396 * BUG 12557: s3:librpc: Handle gss_min in gse_get_client_auth_token()
398 * BUG 12582: idmap_hash: Add a deprecation message, improve the idmap_hash
400 * BUG 12592: Fix several issues found by covscan.
402 o Martin Schwenke <martin@meltin.net>
403 * BUG 12592: ctdb-logging: CID 1396883 Dereference null return value
407 CHANGES SINCE 4.6.0rc3
408 ======================
410 o Jeremy Allison <jra@samba.org>
411 * BUG 12545: s3: rpc_server/mdssvc: Add attribute "kMDItemContentType".
412 * BUG 12572: s3: smbd: Don't loop infinitely on bad-symlink resolution.
414 o Ralph Boehme <slow@samba.org>
415 * BUG 12490: vfs_fruit: Correct Netatalk metadata xattr on FreeBSD.
416 * BUG 12536: s3/smbd: Check for invalid access_mask
417 smbd_calculate_access_mask().
418 * BUG 12591: vfs_streams_xattr: use fsp, not base_fsp.
420 o Amitay Isaacs <amitay@gmail.com>
421 * BUG 12580: ctdb-common: Fix use-after-free error in comm_fd_handler().
422 * BUG 12595: build: Fix generation of CTDB manpages while creating tarball.
424 o Bryan Mason <bmason@redhat.com>
425 * BUG 12575: Modify smbspool_krb5_wrapper to just fall through to smbspool if
426 AUTH_INFO_REQUIRED is not set or is not "negotiate".
428 o Stefan Metzmacher <metze@samba.org>
429 * BUG 11830: s3:winbindd: Try a NETLOGON connection with noauth over NCACN_NP
430 against trusted domains.
431 * BUG 12262: 'net ads testjoin' and smb access fails after winbindd changed the
433 * BUG 12585: librpc/rpc: fix regression in
434 NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE error mapping.
435 * BUG 12586: netlogon_creds_cli_LogonSamLogon doesn't work without
436 netr_LogonSamLogonEx.
437 * BUG 12587: winbindd child segfaults on connect to an NT4 domain.
438 * BUG 12588: s3:winbindd: Make sure cm_prepare_connection() only returns OK
439 with a valid tree connect.
440 * BUG 12598: winbindd (as member) requires kerberos against trusted ad domain,
442 * BUG 12601: Backport pytalloc_GenericObject_reference() related changes to
445 o Garming Sam <garming@catalyst.net.nz>
446 * BUG 12600: dbchecker: Stop ignoring linked cases where both objects are
449 o Andreas Schneider <asn@samba.org>
450 * BUG 12571: s3-vfs: Only walk the directory once in open_and_sort_dir().
452 o Martin Schwenke <martin@meltin.net>
453 * BUG 12589: CTDB statd-callout does not cause grace period when
455 * BUG 12595: ctdb-build: Fix RPM build.
458 CHANGES SINCE 4.6.0rc2
459 ======================
461 o Jeremy Allison <jra@samba.org>
462 * BUG 12499: s3: vfs: dirsort doesn't handle opendir of "." correctly.
463 * BUG 12546: s3: VFS: vfs_streams_xattr.c: Make streams_xattr_open() store
464 the same path as streams_xattr_recheck().
465 * BUG 12531: Make vfs_shadow_copy2 cope with server changing directories.
467 o Andrew Bartlett <abartlet@samba.org>
468 * BUG 12543: samba-tool: Correct handling of default value for use_ntvfs and
470 * BUG 12573: Samba < 4.7 does not know about compatibleFeatures and
472 * BUG 12577: 'samba-tool dbcheck' gives errors on one-way links after a
475 o Ralph Boehme <slow@samba.org>
476 * BUG 12184: s3/rpc_server: Shared rpc modules loading.
477 * BUG 12520: Ensure global "smb encrypt = off" is effective.
478 * BUG 12524: s3/rpc_server: Move rpc_modules.c to its own subsystem.
479 * BUG 12541: vfs_fruit: checks wrong AAPL config state and so always uses
482 o Volker Lendecke <vl@samba.org>
483 * BUG 12551: smbd: Fix "map acl inherit" = yes.
485 o Stefan Metzmacher <metze@samba.org>
486 * BUG 12398: Replication with DRSUAPI_DRS_CRITICAL_ONLY and
487 DRSUAPI_DRS_GET_ANC results in WERR_DS_DRA_MISSING_PARENT S
488 * BUG 12540: s3:smbd: allow "server min protocol = SMB3_00" to go via "SMB
491 o John Mulligan <jmulligan@nasuni.com>
492 * BUG 12542: docs: Improve description of "unix_primary_group" parameter in
495 o Andreas Schneider <asn@samba.org>
496 * BUG 12552: waf: Do not install the unit test binary for krb5samba.
498 o Amitay Isaacs <amitay@gmail.com>
499 * BUG 12547: ctdb-build: Install CTDB tests correctly from toplevel.
500 * BUG 12549: ctdb-common: ioctl(.. FIONREAD ..) returns an int value.
502 o Garming Sam <garming@catalyst.net.nz>
503 * BUG 12577: 'samba-tool dbcheck' gives errors on one-way links after a
506 o Uri Simchoni <uri@samba.org>
507 * BUG 12529: waf: Backport finding of pkg-config.
510 CHANGES SINCE 4.6.0rc1
511 ======================
513 o Amitay Isaacs <amitay@gmail.com>
514 * BUG 12469: CTDB lock helper getting stuck trying to lock a record.
515 * BUG 12500: ctdb-common: Fix a bug in packet reading code for generic socket
517 * BUG 12510: sock_daemon_test 4 crashes with SEGV.
518 * BUG 12513: ctdb-daemon: Remove stale eventd socket.
520 o Björn Jacke <bj@sernet.de>
521 * BUG 12535: vfs_default: Unlock the right file in copy chunk.
523 o Volker Lendecke <vl@samba.org>
524 * BUG 12509: messaging: Fix dead but not cleaned-up-yet destination sockets.
525 * BUG 12538: Backport winbind fixes.
527 o Stefan Metzmacher <metze@samba.org>
528 * BUG 12501: s3:winbindd: talloc_steal the extra_data in
529 winbindd_list_users_recv().
531 o Martin Schwenke <martin@meltin.net>
532 * BUG 12511: ctdb-takeover: Handle case where there are no RELEASE_IPs to
534 * BUG 12512: ctdb-scripts: Fix remaining uses of "ctdb gratiousarp".
535 * BUG 12516: ctdb-scripts: /etc/iproute2/rt_tables gets populated with multiple
539 #######################################
540 Reporting bugs & Development Discussion
541 #######################################
543 Please discuss this release on the samba-technical mailing list or by
544 joining the #samba-technical IRC channel on irc.freenode.net.
546 If you do report problems then please try to send high quality
547 feedback. If you don't provide vital information to help us track down
548 the problem then you will probably be ignored. All bug reports should
549 be filed under the Samba 4.1 and newer product in the project's Bugzilla
550 database (https://bugzilla.samba.org/).
553 ======================================================================
554 == Our Code, Our Bugs, Our Responsibility.
556 ======================================================================