                   ==============================
                   Release Notes for Samba 4.25.2
                         November 30, 2026
                   ==============================


This is the latest stable release of the Samba 4.25 release series.

This release also fixes bug 16169, which also has CVE-2026-120377 assigned.
This only affects deprecated NT4 DC or standalone setups with pdb_ldap
backend.

Changes since 4.25.1
--------------------

o  Dimitry Andric <dimitry@andric.com>
   * BUG 16278: Possible SIGFPE in vfs_streams_xattr, after 5fa43440ebd3

o  Andrew Bartlett <abartlet@samba.org>
   * BUG 16128: NTVFS still looks like production software, attracting spurious
     bug reports
   * BUG 16129: ntvfs_simple maps SMB names to Unix paths without rejecting dot-
     dot traversal before filesystem sinks

o  Ralph Boehme <slow@samba.org>
   * BUG 16232: delay_for_handle_lease_break converts lease-break-ACK timeout
     into STATUS_ACCESS_DENIED on CLOSE
   * BUG 16264: replay-cache record leak in smbXsrv_open_close()
   * BUG 16291: shadow_copy2: previous versions of nested directories fail with
     catia and disables the RESOLVE_NO_SYMLINKS fast path
   * BUG 16337: smbd: a deferred SMB2 create uses freed memory to remove its
     create_guid from the replay cache
   * BUG 16390: open record stays claimed when a durable reconnect fails
   * BUG 16463: smbd panics ("Bad talloc magic value") on a directory delete
     during concurrent opens: parse_share_mode_data() frees an
     uninitialized pointer

o  James Chang <jamesc@berkeley.edu>
   * BUG 16464: durable reconnect refusal double-frees br_lck
   * BUG 16467: Samba reconnects a durable (not persistent) handle only when
     every byte-range lock on the file belongs to that handle

o  Muhammad Daffa <muhammaddaffa.info@gmail.com>
   * BUG 16328: With "max smbd processes" set to a non-zero value, each failed
     fork() in the smbd listener permanently consumed one process
     slot.      After enough failures, which resource pressure such
     as RLIMIT_NPROC      or a pids cgroup limit can cause, smbd
     refused all new connections      with no worker processes
     running, and only a restart recovered.

o  Pavel Filipenský <pfilipensky@samba.org>
   * BUG 16267: Clustered keytab generation needs improvement

o  Hiroshi Ioka <hirochachacha@gmail.com>
   * BUG 16302: smbtorture smb2.bench tests panic "assert failed: latency >=
     0.000001" when the wall clock steps backwards
   * BUG 16316: smbd keeps the old name of an open after a rename that changes
     only the case
   * BUG 16319: smbd disconnects an SMB over QUIC client instead of sending it a
     lease or oplock break (getsockopt TCP_INFO fails)

o  Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
   * BUG 16236: Suppress spurious "mutexes requested but not available" DBG_ERR
     messages on stderr when running CLI utilities (such as
     smbstatus) on      platforms built without robust mutex support
     (e.g., OpenBSD).

o  Volker Lendecke <vl@samba.org>
   * BUG 11255: Handling of trailing period and trailing space in vfs_fruit or
     smbd
   * BUG 15346: 2-3min delays at reconnect with smb2_validate_sequence_number:
     bad message_id 2
   * BUG 15978: leases torture test flappy (marked flappy)
   * BUG 16167: pdb_smbpasswd strlen Underflow Causes Out-of-Bounds Array Access
   * BUG 16238: fruit_renameat does not deal well with ENAMETOOLONG for the
     sidecar file
   * BUG 16271: smbd panic on locking calls for fd's without data access
   * BUG 16374: pthreadpool_tevent: race allocating glue objects crashes
     test_pthreadpool_tevent_job_send_multiple_3
   * BUG 16480: tevent: threaded wakeup can be written to a closed and reused fd
   * BUG 16489: ctdb: vacuum child turns into a fork bomb if it can't connect to
     ctdbd

o  Yunqing Li <liyunqing@kylinos.cn>
   * BUG 16475: python: dcerpc: passing object=None to
     ClientConnection.request() segfaults the Python interpreter

o  Tristan Madani <tristan@talencesecurity.com>
   * BUG 16088: SAMR SetSecurity: NULL pointer dereference via empty security
     descriptor
   * BUG 16089: SPOOLSS SetPrinter Level 3: NULL pointer dereference via empty
     security descriptor
   * BUG 16174: DNS SOA Serial uint32-to-uint16 Truncation Bypasses Update
     Ordering

o  Weiqiang Meng <sunpeng_yewu1@cmss.chinamobile.com>
   * BUG 16243: smbd: hosts allow/deny changes not enforced on
     existing sessions after reload-config

o  Stefan Metzmacher <metze@samba.org>
   * BUG 15793: smbpasswd fails in AIX
   * BUG 16228: Machine account based kinit does not fallback to old, older and
     next passwords
   * BUG 16275: samba3.rpc.wkssvc(ad_member) intermittently fails with
     WERR_ACCESS_DENIED
   * BUG 16284: smbXsrv_session_update stores sessions with num_channels = 0,
     which smbstatus fails to parse
   * BUG 16307: pidl: data following an inline [relative] pointer referent is
     pulled from the referent (e.g. security_token with claims)
   * BUG 16308: ctdb: CTDB_CONTROL_GET_DB_STATISTICS sends heap pointers of
     ctdbd to the client
   * BUG 16309: ctdb: ctdb_sock_addr_push() puts uninitialized memory on the
     wire
   * BUG 16310: notifyd: fcn_wait_filter() corrupts the received events (only
     used by tests)
   * BUG 16311: registry: a subkey name with more than 255 bytes makes the
     parent key unusable, longer value names are silently truncated
   * BUG 16312: groupdb: a group mapping with a name or comment longer than 255
     bytes can't be found after adding it
   * BUG 16313: Protect the wire formats shared between cluster nodes against
     incompatible changes and allow rolling upgrades from 4.25
   * BUG 16320: smbd: the number of entries of a version 1 user.SAMBA_PAI xattr
     is read with the wrong size since 4.24
   * BUG 16321: secrets_fetch_afs_key() reads before the buffer for an AFS
     keyfile without keys
   * BUG 16322: ctdb: the client library uses a different size of struct
     ctdb_ltdb_header than ctdbd on some 32-bit platforms
   * BUG 16323: authsam_logon_success_accounting() uses freed memory if
     committing the transaction fails
   * BUG 16324: cli_chmod_recv() returns the status from freed memory
   * BUG 16325: smbclient can crash in cli_shutdown() after following a DFS
     referral
   * BUG 16326: tevent: freeing a running immediate event after its
     tevent_context uses the freed tevent_context (crashes ctdbd
     child processes)
   * BUG 16370: prefork: stale irpc registrations of killed workers let
     samba.tests.prefork_restart fail
   * BUG 16383: samba-tool ntacl sysvolreset/sysvolcheck fail with an uncaught
     exception without [sysvol] or [netlogon] share
   * BUG 16387: samba4.drs.samba_tool_drs.python(schema_pair_dc) fails from time
     to time with "Password has expired"
   * BUG 16389: selftest: samba3.blackbox.aio_ratelimit.test_aio_ratelimit_basic
     flaps with "no rate-limiting delay observed"
   * BUG 16480: tevent: threaded wakeup can be written to a closed and reused fd

o  Anoop C S <anoopcs@samba.org>
   * BUG 16484: Missing talloc stackframe in db_ctdb_marshall_add() on CTDB
     registry write

o  Andreas Schneider <asn@samba.org>
   * BUG 16275: samba3.rpc.wkssvc(ad_member) intermittently fails with
     WERR_ACCESS_DENIED
   * BUG 16370: prefork: stale irpc registrations of killed workers let
     samba.tests.prefork_restart fail

o  Martin Schwenke <mschwenke@ddn.com>
   * BUG 16267: Clustered keytab generation needs improvement
   * BUG 16292: ctdbd crashes during recovery when PID is 1
   * BUG 16309: ctdb: ctdb_sock_addr_push() puts uninitialized memory on the
     wire
   * BUG 16322: ctdb: the client library uses a different size of struct
     ctdb_ltdb_header than ctdbd on some 32-bit platforms

o  Shweta Sodani <Shweta.Sodani@ibm.com>
   * BUG 16269: DC FAILOVER message is logging in every 15 mins

o  Priyanka Soni <priysoni@redhat.com>
   * BUG 16251: vfs_fruit: failed base rename leaves the AppleDouble sidecar
     under the destination name

o  Achilleas Stergioulis <achilleasnake@gmail.com>
   * BUG 14630: Fix Windows password changes for expired accounts when using the
     MIT KDC backend.

o  Jennifer Sutton <jennifersutton@catalyst.net.nz>
   * BUG 16169: [SECURITY] pdb_ldap User Deletion LDAP Filter Injection via
     Unescaped Username


#######################################
Reporting bugs & Development Discussion
#######################################

Please discuss this release on the samba-technical mailing list or by
joining the #samba-technical:matrix.org matrix room, or
#samba-technical IRC channel on irc.libera.chat.

If you do report problems then please try to send high quality
feedback. If you don't provide vital information to help us track down
the problem then you will probably be ignored.  All bug reports should
be filed under the Samba 4.1 and newer product in the project's Bugzilla
database (https://bugzilla.samba.org/).


======================================================================
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
======================================================================


Release notes for older releases follow:
----------------------------------------
                   ==============================
                   Release Notes for Samba 4.25.1
                          October 23, 2026
                   ==============================


This is the latest stable release of the Samba 4.25 release series.

This release also fixes bug 16276, which also has CVE-2026-109411 assigned.
As this only affects the recently release 4.25.0 version and only the
newly introduced vfs_ceph_rgw module, we decided to ship this fix with this
ordinary bugfix release.


Changes since 4.25.0
--------------------

o  Vinit Agnihotri <vagnihot@redhat.com>
   * BUG 16276: Access control bypass via vfs_ceph_rgw case-insensitive open
     (CVE-2026-109411)

o  Björn Baumbach <bb@sernet.de>
   * BUG 16274: CTDB: Cannot find device "<iface>@<link>": need to extract real
     interface names

o  Volker Lendecke <vl@samba.org>
   * BUG 16200: generate_unique_u64() may not protect against veto_value
   * BUG 16261: Rename with ReplaceIfExists to a target differing only in case
     creates a duplicate instead of replacing (regression in
     bb130f32)

o  Daeho Ro <email@daeho.ro>
   * BUG 16263: Samba 4.25.0 fails to build on macOS

o  Anoop C S <anoopcs@samba.org>
   * BUG 16258: Python smbconf transaction_start() lacks a talloc stack frame
     with CTDB
   * BUG 16265: Linux i686 build fails on dynamic_lookup
   * BUG 16276: Access control bypass via vfs_ceph_rgw case-insensitive open
     (CVE-2026-109411)
   * BUG 16287: vfs_acl_xattr crashes on zero-sized flistxattr queries

o  Martin Schwenke <mschwenke@ddn.com>
   * BUG 16235: Dynamic interface support in smbd is racy
   * BUG 16254: CTDB database operations can be run against incorrect nodes
   * BUG 16273: A node can be banned because it tries to run recovery after
     losing the cluster lock

o  Shweta Sodani <ssodani@redhat.com>
   * BUG 15857: All backend  log should honor global log level  "log level = "

o  Priyanka Soni <priysoni@redhat.com>
   * BUG 15324: fruit:time machine max size can only be set to an integer and is
     ignored if user sets a float


#######################################
Reporting bugs & Development Discussion
#######################################

Please discuss this release on the samba-technical mailing list or by
joining the #samba-technical:matrix.org matrix room, or
#samba-technical IRC channel on irc.libera.chat.

If you do report problems then please try to send high quality
feedback. If you don't provide vital information to help us track down
the problem then you will probably be ignored.  All bug reports should
be filed under the Samba 4.1 and newer product in the project's Bugzilla
database (https://bugzilla.samba.org/).


======================================================================
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
======================================================================


----------------------------------------------------------------------
                   ==============================
                   Release Notes for Samba 4.25.0
                         September 24, 2026
                   ==============================


This is the first stable release of the Samba 4.25 release series.
Please read the release notes carefully before upgrading.


NEW FEATURES/CHANGES
====================

SMB3 Persistent Handles (Experimental)
--------------------------------------

Samba now includes experimental support for SMB3 Persistent Handles,
a fundamental building block for Transparent Failover.

Persistent Handles allow SMB clients to reconnect after a server
restart or outage while retaining valid file handles. Samba persists
all necessary handle state to durable on-disk storage so that open
files can be reconstructed when clients reconnect. This enables
applications that depend on uninterrupted file access, such as virtual
machine storage and clustered database workloads, to tolerate
temporary server failures without having to reopen files.

Persistent Handles are advertised through the SMB3 protocol capability
SMB2_CAP_PERSISTENT_HANDLES. To make use of them on a share, both the
global "persistent handles" option and the per-share
"continuous availability" option must be enabled.

Because Persistent Handles require Samba to maintain SMB state, they
are only available on shares configured for SMB-exclusive
access. Specifically, they require:

kernel oplocks = no
kernel share modes = no
posix locking = no

These settings disable interoperability with local POSIX file access
and NFS clients on the affected share.

Administrators should be aware that Persistent Handles incur a
significant performance cost. File handle metadata is synchronously
persisted to durable storage for every open, update, lease, and close
operation, increasing latency compared to traditional SMB file
serving. For this reason, the feature is intended only for workloads
that require Continuous Availability semantics and is not recommended
for general-purpose file servers.

On a cluster the handle state is kept in a volatile ctdb database that
is replicated to every node, and additionally in a backup copy in a
persistent ctdb database. Only that backup copy makes handles survive
an outage of every node at the same time, for example a maintenance
window in which the whole cluster is shut down and restarted, because
that loses the volatile databases. Maintaining the backup is expensive:
every change to the state of a persistent handle costs an additional
cluster wide transaction, and that transaction is written to stable
storage on every node.

The new global option "persistent handles durability" to choose to
which side of the tradeof, performance or durability, they want to
lean on:

persistent handles durability = full_outage

  The default. The backup copy is maintained and handles survive an
  outage of the whole cluster.

persistent handles durability = partial_outage

  The backup copy is not maintained. Handles survive any outage that
  leaves at least one node running, which covers a node crash, a
  rolling restart and the loss of all but one node, because the handle
  state is still kept on every node of the cluster. Handles are lost if
  every node is down at the same time. In exchange, every open, update,
  lease and close operation becomes noticeably cheaper.

This feature is currently considered experimental.

Cluster-wide rate limiting in vfs_aio_ratelimit
------------------------------------------------

The vfs_aio_ratelimit VFS module has been extended with cluster-wide
coordination. When Samba clustering is enabled, the configured per-share rate
limits are now enforced as a global ceiling across the entire cluster rather than
per-node. Each share's limits are tracked and enforced independently.

Coordination is handled by a new per-node daemon, ratelimitd, which aggregates
activity from all smbd processes on the node and broadcasts node-level summaries
to the rest of the cluster via Samba's messaging layer.

To enable this feature, Samba must be built with --with-ratelimitd.

New Ceph RGW VFS module
-----------------------

Introduced a new VFS module, vfs_ceph_rgw, which uses the librgw APIs to
export Ceph Object Gateway buckets as SMB shares. It provides a hierarchical
view of the objects stored in a bucket, allowing them to be accessed as files
and folders. The module supports standard POSIX uids and gids, as well as most
basic file operations.

JSON Audit logging
------------------

The two leading spaces before the opening '{' on JSON audit log lines have been
removed. And any embedded new line characters '\n' are converted to spaces.

Domain encryption types changed to AES by default
-------------------------------------------------

The default value of the smb.conf option ‘kdc default domain supported enctypes’
now corresponds to ‘aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha1-96’ (both AES
encryption types) if the domain functional level is 2008 or higher. This
addresses CVE-2026-20833.

CTDB changes
------------

* CTDB's locations for locks, PID files and sockets now use ctdb/
  subdirectories of the Samba locations configured at build time.
  This means that the relevant top-level Samba configure options
  (--with-lockdir, --with-piddir, --with-sockets-dir) are now also
  used by CTDB.

  The standalone CTDB build does not support these options.  However,
  it is generally only used for developer/standalone testing.

* The CTDB initscript (ctdb.init) has been moved to ctdb/doc/examples.
  This recognises that it isn't installed by default so it is
  basically unmaintained and untested.

* Monitoring of (infrastructure) hosts is now supported.  A good use
  of this is to monitor DNS servers.  See the NETWORK MONITORING
  section in ctdb-script.options(5) for more details.

* The detect_init_style() script function and associated
  CTDB_INIT_STYLE variable are deprecated, so will be removed in a
  future release.  Use the new, more general CTDB_PLATFORM_STYLE
  variable instead.  This may affect site-local CTDB (event) scripts.
  See ctdb.sysconfig(5) for more details.

Cluster functional level
------------------------

Samba now maintains a cluster functional level, a cluster wide value
that is kept as persistent global state and shared by all nodes. It
is similar in spirit to the domain and forest functional levels known
from Active Directory.

The purpose of the functional level is to allow controlled upgrades
of a cluster. New database formats, new internal messages and other
changes that affect the communication between nodes are gated behind
an explicit raise of the cluster functional level. As long as the
level has not been raised, all nodes keep writing and sending the old
formats, so that nodes running different Samba versions can
interoperate during a rolling upgrade.

A level consists of a major and a minor number, e.g. "1.0". Samba
4.25 implements the initial level 1.0, which is currently also the
only defined level.

On a non-clustered server the highest supported level is always
activated automatically, there is nothing to configure or maintain.

On a cluster the currently active level is stored persistently in
cluster_level.tdb. On a fresh cluster it is initialized with the
highest level supported by the second node that starts up. From then
on the level never changes on its own, it is only raised when an
administrator explicitly asks for it. A node that does not support
the currently active level refuses to start, which keeps a node
running an incompatible Samba version from joining the cluster.

Once all nodes of a cluster have been upgraded to a new Samba
version, the administrator can raise the cluster functional level.
The new 'net clusterlevel' subcommands are available for this:

  net clusterlevel features
        List the cluster functional levels supported by the
        installed binaries.

  net clusterlevel show
        Show the currently active cluster functional level.

  net clusterlevel showall
        Show the levels supported by each node of the cluster,
        together with the currently active level and the highest
        level that could be activated.

  net clusterlevel upgrade [--test] [--apply]
        Raise the active cluster functional level to the highest
        level supported by all nodes. With --test (the default) only
        checks and reports whether the upgrade would be possible,
        --apply performs the actual upgrade.

Note that raising the cluster functional level is a one way
operation, there is no way to lower it again. It should only be done
once all nodes have been upgraded and the new version has proven to
work.

The current implementation is deliberately strict: an upgrade is only
possible if all nodes announce the exact same set of supported
levels, which in practice means that all nodes run the same Samba
version.

Also note that this change only prepares for the future. It
is not designed help with upgrades from older versions before
4.25 to 4.25 as a target. However vendors are free to use their
own backports and use custom levels >= 0.1 and < 1.0.

REMOVED FEATURES
================


smb.conf changes
================

  Parameter Name                          Description     Default
  --------------                          -----------     -------
  allow dcerpc auth level connect         deprecated
  kdc default domain supported enctypes   New default     AES encryption types (if supported by domain)
  getwd cache                             Removed
  persistent handles                      New             no
  persistent handles durability           New             full_outage
  continuous availability                 New             no


Changes since 4.25.0rc2
=======================

o  Ralph Boehme <slow@samba.org>
   * BUG 16234: persistent handles options in WHATSNEW need fixups
   * BUG 16237: Bugs in Persistent Handles database layer code
   * BUG 16253: smbstatus byte-range locks broken by Persistent Handle changes

o  Volker Lendecke <vl@samba.org>
   * BUG 16233: "getwd cache" removal needs more work

o  Stefan Metzmacher <metze@samba.org>
   * BUG 15962: SMB3 SESSION SETUP responses must always be signed
   * BUG 16081: winbindd_child_msg_filter: talloc_get_type_abort crashes when
     winbind max domain connections > 1

o  Kopylov Pavel <pkopylov@cloudlinux.com>
   * BUG 16239: Fix parsing of uppercase "0X" hex values in the "kdc default
     domain      supported enctypes" smb.conf parameter.

o  Anoop C S <anoopcs@samba.org>
   * BUG 16240: smbd temporary mkdir name can exceed NAME_MAX for otherwise
     valid client names

CHANGES SINCE 4.25.0rc1
=======================

o  Stefan Metzmacher <metze@samba.org>
   * BUG 15988: Samba internal DNS service doesn't handle switch from UDP to TCP
     when packet is larger than 4k
   * BUG 16194: autobuild failures need to be reported in a more verbose way
   * BUG 16219: samba-cluster-support should depend on ndr-samba
   * BUG 16223: DNS scavenging happens even if fAging is FALSE
   * BUG 16226: samba-tool dns zoneoptions $DC_SERVER_IP
     _msdcs.addom.samba.example.com -P --aging=1 gives
     WERR_INTERNAL_DB_ERROR

o  Jennifer Sutton <jennifersutton@catalyst.net.nz>
   * BUG 16225: dns client problems related to EDNS usage



KNOWN ISSUES
============

https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.25#Release_blocking_bugs


#######################################
Reporting bugs & Development Discussion
#######################################

Please discuss this release on the samba-technical mailing list or by
joining the #samba-technical:matrix.org matrix room, or
#samba-technical IRC channel on irc.libera.chat

If you do report problems then please try to send high quality
feedback. If you don't provide vital information to help us track down
the problem then you will probably be ignored.  All bug reports should
be filed under the Samba 4.1 and newer product in the project's Bugzilla
database (https://bugzilla.samba.org/).


======================================================================
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
======================================================================
