Diff below updates net/samba to 4.25.2. Changes:
https://www.samba.org/samba/history/samba-4.25.2.html
Fixes CVE-2026-120377 (bug 16169), which only affects deprecated NT4 DC
or standalone setups using pdb_ldap; neither is used on OpenBSD.
Two patches have been upstreamed, and following check_sym, several
shared libraries received a minor bump.
Build- and lightly run-tested on amd64 -current and -stable.
OK to commit to -current and -stable?
diff --git Makefile Makefile
index c9a5b3c17dc..0ce6d54c415 100644
--- Makefile
+++ Makefile
@@ -1,4 +1,4 @@
-VERSION = 4.25.1
+VERSION = 4.25.2
DISTNAME = samba-${VERSION}
EPOCH = 0
@@ -15,17 +15,17 @@ SHARED_LIBS = dcerpc 3.0 \
dcerpc-samr 1.0 \
dcerpc-server-core 3.2 \
ldb 2.4 \
- ndr 4.1 \
+ ndr 4.2 \
ndr-krb5pac 1.4 \
ndr-nbt 2.2 \
ndr-standard 6.2 \
netapi 3.4 \
- samba-credentials 3.1 \
+ samba-credentials 3.2 \
samba-errors 2.1 \
samba-hostconfig 20.0 \
samba-passdb 3.2 \
samba-policy 0.0 \
- samba-util 15.0 \
+ samba-util 15.1 \
samdb 6.0 \
smbclient 6.3 \
smbconf 20.0 \
diff --git distinfo distinfo
index 3a2a012dd89..68103251b95 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (samba-4.25.1.tar.gz) = fzZ1Rbymmqlol2KPgvDwTUtms7yzbLl4ubuVLEtMQo0=
-SIZE (samba-4.25.1.tar.gz) = 43590836
+SHA256 (samba-4.25.2.tar.gz) = 2bAdrOXK28OfED7sTe9HHtzpr2yE9a3pXs9H3fBQnyY=
+SIZE (samba-4.25.2.tar.gz) = 43629833
diff --git patches/patch-lib_tdb_wrap_tdb_wrap_c
patches/patch-lib_tdb_wrap_tdb_wrap_c
deleted file mode 100644
index 2e98fa2d501..00000000000
--- patches/patch-lib_tdb_wrap_tdb_wrap_c
+++ /dev/null
@@ -1,17 +0,0 @@
-Silent fallback to fcntl locking when optional TDB mutexes are unavailable.
-Taken from https://gitlab.com/samba-team/samba/-/merge_requests/4700
-
-Index: lib/tdb_wrap/tdb_wrap.c
---- lib/tdb_wrap/tdb_wrap.c.orig
-+++ lib/tdb_wrap/tdb_wrap.c
-@@ -151,8 +151,10 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx,
-
- if (tdb_flags & TDB_MUTEX_LOCKING) {
- if (!tdb_runtime_check_for_robust_mutexes()) {
-+#ifdef HAVE_ROBUST_MUTEXES
- DBG_ERR("mutexes requested but not "
- "available\n");
-+#endif
- tdb_flags &= ~TDB_MUTEX_LOCKING;
- }
- }
diff --git patches/patch-source3_lib_dbwrap_dbwrap_open_c
patches/patch-source3_lib_dbwrap_dbwrap_open_c
deleted file mode 100644
index 934cab06267..00000000000
--- patches/patch-source3_lib_dbwrap_dbwrap_open_c
+++ /dev/null
@@ -1,18 +0,0 @@
-Silent fallback to fcntl locking when optional TDB mutexes are unavailable.
-Taken from https://gitlab.com/samba-team/samba/-/merge_requests/4700
-
-Index: source3/lib/dbwrap/dbwrap_open.c
---- source3/lib/dbwrap/dbwrap_open.c.orig
-+++ source3/lib/dbwrap/dbwrap_open.c
-@@ -127,9 +127,11 @@ struct db_context *db_open_ex(TALLOC_CTX *mem_ctx,
- if (try_mutex) {
- if (tdb_runtime_check_for_robust_mutexes()) {
- tdb_flags |= TDB_MUTEX_LOCKING;
-+#ifdef HAVE_ROBUST_MUTEXES
- } else {
- DBG_ERR("mutexes requested but not "
- "available\n");
-+#endif
- }
- }
-
diff --git pkg/PLIST-main pkg/PLIST-main
index 288be0fc33e..584036717b0 100644
--- pkg/PLIST-main
+++ pkg/PLIST-main
@@ -1101,6 +1101,8 @@
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb-basi
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb-basic.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb_lock.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}libsmb_lock.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}loadparm.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}loadparm.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/${MODPY_PYCACHE}logfiles.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
@@ -1281,6 +1283,8 @@
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}cl
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}claims.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}downgradedatabase.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}downgradedatabase.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}durable_file_id.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}durable_file_id.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}gmsa.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}gmsa.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/${MODPY_PYCACHE}http_chunk.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
@@ -1325,6 +1329,7 @@
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/bug13653.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/check_output.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/claims.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/downgradedatabase.py
+lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/durable_file_id.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/gmsa.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/http_chunk.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/blackbox/http_content.py
@@ -1635,6 +1640,7 @@
lib/python${MODPY_VERSION}/site-packages/samba/tests/ldap_upn_sam_account.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/ldap_whoami.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/libsmb-basic.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/libsmb.py
+lib/python${MODPY_VERSION}/site-packages/samba/tests/libsmb_lock.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/loadparm.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/logfiles.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/lsa_string.py