[packages/rpcbind] Up to 1.3.1
arekm
arekm at pld-linux.org
Thu Oct 29 09:04:47 CET 2026
commit 1dc3c464c531d2b2b2c13fd0287d35a4b4e8ad21
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 01:12:44 2026 +0100
Up to 1.3.1
Fixes CVE-2026-94640, CVE-2026-16461, CVE-2026-16277.
rpcbind-systemd.patch | 29 +++++++++++------------------
rpcbind-taddr-init.patch | 12 ++++++++++++
rpcbind-tcp-addrs.patch | 28 ++++++++++++++--------------
rpcbind.spec | 8 +++++---
4 files changed, 42 insertions(+), 35 deletions(-)
---
diff --git a/rpcbind.spec b/rpcbind.spec
index 24bf0c5..98d7710 100644
--- a/rpcbind.spec
+++ b/rpcbind.spec
@@ -6,12 +6,12 @@
Summary: Universal addresses to RPC program number mapper
Summary(pl.UTF-8): Demon odwzorowujący adresy uniwersalne na numery programów RPC
Name: rpcbind
-Version: 1.2.7
+Version: 1.3.1
Release: 1
License: BSD
Group: Daemons
Source0: https://downloads.sourceforge.net/rpcbind/%{name}-%{version}.tar.bz2
-# Source0-md5: acd444ed322eb458fbd395ec69c4e083
+# Source0-md5: 40fa9dd573ab8e936f55a275acf8fd76
Source1: %{name}.init
Source2: %{name}.sysconfig
Patch0: %{name}-libwrap.patch
@@ -20,8 +20,9 @@ Patch2: %{name}-sunrpc.patch
Patch3: %{name}-nss.h.patch
Patch4: %{name}-systemd.patch
Patch6: %{name}-tcp-addrs.patch
+Patch7: %{name}-taddr-init.patch
# http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
-URL: http://sourceforge.net/projects/rpcbind/
+URL: https://sourceforge.net/projects/rpcbind/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: libtirpc-devel >= 1:1.0.1
@@ -63,6 +64,7 @@ wywołania RPC na serwerze na tej maszynie.
%patch -P3 -p1
%patch -P4 -p1
%patch -P6 -p1
+%patch -P7 -p1
%build
%{__libtoolize}
diff --git a/rpcbind-systemd.patch b/rpcbind-systemd.patch
index abc2f31..987077e 100644
--- a/rpcbind-systemd.patch
+++ b/rpcbind-systemd.patch
@@ -1,29 +1,22 @@
---- rpcbind-1.2.7/systemd/rpcbind.service.in.orig 2024-10-05 21:00:04.616741208 +0200
-+++ rpcbind-1.2.7/systemd/rpcbind.service.in 2024-10-05 21:00:47.903173372 +0200
-@@ -8,11 +8,13 @@ RequiresMountsFor=@statedir@
- # rpcbind.socket, no matter how this unit is started.
+--- rpcbind-1.3.1/systemd/rpcbind.service.in.orig 2026-10-29 01:03:42.760297840 +0100
++++ rpcbind-1.3.1/systemd/rpcbind.service.in 2026-10-29 01:03:47.667525702 +0100
+@@ -9,6 +9,7 @@
Requires=rpcbind.socket
- Wants=rpcbind.target
+ Wants=rpcbind.target systemd-tmpfiles-setup.service
+ After=systemd-tmpfiles-setup.service
+After=syslog.target network.target
[Service]
- Type=notify
--# distro can provide a drop-in adding EnvironmentFile=-/??? if needed.
-+EnvironmentFile=-/etc/sysconfig/rpcbind
- ExecStart=@_sbindir@/rpcbind $RPCBIND_OPTIONS @warmstarts_opt@ -f
+ ProtectSystem=full
+@@ -30,3 +31,4 @@
[Install]
WantedBy=multi-user.target
+Also=rpcbind.socket
---- rpcbind-1.2.7/systemd/rpcbind.socket.orig 2024-10-05 21:01:05.846409499 +0200
-+++ rpcbind-1.2.7/systemd/rpcbind.socket 2024-10-05 21:02:11.329388080 +0200
-@@ -5,15 +5,14 @@ Wants=rpcbind.target
- Before=rpcbind.target
-
- [Socket]
--ListenStream=/run/rpcbind.sock
--#ListenStream=@/run/rpcbind.sock
-+ListenStream=/var/run/rpcbind.sock
+--- rpcbind-1.3.1/systemd/rpcbind.socket.in.orig 2026-10-29 01:07:39.299999999 +0100
++++ rpcbind-1.3.1/systemd/rpcbind.socket.in 2026-10-29 01:07:39.304901937 +0100
+@@ -9,11 +9,11 @@
+ @ABSTRACT_TRUE at ListenStream=@/run/rpcbind.sock
# RPC netconfig can't handle ipv6/ipv4 dual sockets
-BindIPv6Only=ipv6-only
diff --git a/rpcbind-taddr-init.patch b/rpcbind-taddr-init.patch
new file mode 100644
index 0000000..e593027
--- /dev/null
+++ b/rpcbind-taddr-init.patch
@@ -0,0 +1,12 @@
+init_transport() frees taddr.addr.buf on paths taken before it is set (getsockname()
+failure on a systemd-passed socket); start from NULL
+--- rpcbind-1.3.1/src/rpcbind.c.orig 2026-10-29 01:04:01.429280284 +0100
++++ rpcbind-1.3.1/src/rpcbind.c 2026-10-29 01:04:19.209955068 +0100
+@@ -422,6 +422,7 @@
+ mode_t oldmask;
+ int n;
+ res = NULL;
++ taddr.addr.buf = NULL;
+
+ if ((nconf->nc_semantics != NC_TPI_CLTS) &&
+ (nconf->nc_semantics != NC_TPI_COTS) &&
diff --git a/rpcbind-tcp-addrs.patch b/rpcbind-tcp-addrs.patch
index 48fe9f4..755ae2f 100644
--- a/rpcbind-tcp-addrs.patch
+++ b/rpcbind-tcp-addrs.patch
@@ -1,6 +1,6 @@
---- rpcbind-1.2.7/src/rpcbind.c.orig 2024-10-05 21:02:24.365984122 +0200
-+++ rpcbind-1.2.7/src/rpcbind.c 2024-10-05 21:07:07.604449687 +0200
-@@ -341,7 +341,7 @@ init_transport(struct netconfig *nconf)
+--- rpcbind-1.3.1/src/rpcbind.c.orig 2026-10-29 01:03:55.147389230 +0100
++++ rpcbind-1.3.1/src/rpcbind.c 2026-10-29 01:04:01.429280284 +0100
+@@ -413,7 +413,7 @@
int status; /* bound checking ? */
int aicode;
int addrlen = 0;
@@ -9,7 +9,7 @@
int checkbind;
int on = 1;
struct sockaddr *sa = NULL;
-@@ -458,8 +458,6 @@ init_transport(struct netconfig *nconf)
+@@ -530,8 +530,6 @@
hints.ai_family = si.si_af;
hints.ai_socktype = si.si_socktype;
hints.ai_protocol = si.si_proto;
@@ -18,7 +18,7 @@
/*
* If no hosts were specified, just bind to INADDR_ANY. Otherwise
* make sure 127.0.0.1 is added to the list.
-@@ -477,21 +475,15 @@ init_transport(struct netconfig *nconf)
+@@ -551,21 +549,15 @@
} else
return 1;
}
@@ -49,7 +49,7 @@
hints.ai_flags &= ~AI_NUMERICHOST;
switch (hints.ai_family) {
-@@ -520,7 +512,7 @@ init_transport(struct netconfig *nconf)
+@@ -594,7 +586,7 @@
host_addr) == 1)
continue;
}
@@ -58,7 +58,7 @@
default:
break;
}
-@@ -543,105 +535,41 @@ init_transport(struct netconfig *nconf)
+@@ -617,105 +609,41 @@
}
addrlen = res->ai_addrlen;
sa = (struct sockaddr *)res->ai_addr;
@@ -190,7 +190,7 @@
(void) umask(oldmask);
/* Copy the address */
-@@ -660,7 +586,7 @@ init_transport(struct netconfig *nconf)
+@@ -734,7 +662,7 @@
/* for debugging print out our universal address */
char *uaddr;
struct netbuf nb;
@@ -199,7 +199,7 @@
nb.buf = sa;
switch( sa->sa_family){
-@@ -679,7 +605,8 @@ init_transport(struct netconfig *nconf)
+@@ -753,7 +681,8 @@
}
#endif
@@ -209,12 +209,12 @@
my_xprt = (SVCXPRT *)svc_tli_create(fd, nconf, &taddr, RPC_MAXDATASIZE, RPC_MAXDATASIZE);
if (my_xprt == (SVCXPRT *)NULL) {
-@@ -744,6 +671,8 @@ got_socket:
- /* Also add version 2 stuff to rpcbind list */
- rbllist_add(PMAPPROG, PMAPVERS, nconf, &taddr.addr);
+@@ -762,6 +691,8 @@
+ goto error;
+ }
}
+ if (!checkbind)
+ return 1;
+ got_socket:
- /* We need to support portmap over IPv4. It makes sense to
- * support it over AF_LOCAL as well, because that allows
+ #ifdef PORTMAP
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpcbind.git/commitdiff/1dc3c464c531d2b2b2c13fd0287d35a4b4e8ad21
More information about the pld-cvs-commit
mailing list