Skip to content

rpcbind: various hardening fixes

Scott Mayhew linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rpcbind: only log failures in check_callit() if connection logging is enabledsrc/security.c+6 -40 replies
2/6rpcbind: bound stats lists in rpcbs_getaddr() and rpcbs_rmtcall()src/rpcb_stat.c+32 -30 replies
3/6rpcbind: fully disable remote calls when --enable-rmtcalls is unsetsrc/pmap_svc.c src/rpcb_stat.c src/rpcb_svc.c +4 more+33 -30 replies
4/6rpcbind: restrict RPCBPROC_GETSTAT to loopback callerssrc/security.c+1 -10 replies
5/6rpcbind: check for null netmask in addrmerge()src/util.c+2 -10 replies
6/6rpcbind: only free the forward slot if the reply xid matched the request xidsrc/rpcb_svc_com.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [rpcbind PATCH 0/6] rpcbind: various hardening fixes

Various hardening fixes for rpcbind. Many of these are related to CALLIT/BCAST/INDIRECT processing, which in theory should be disabled when --enable-rmtcalls was not passed to the configure script, except currently that only prevents the forwarding port from being created. Patch 3/6 addresses this by completely disabling remote call functionality when --enable-rmtcalls is unset.

Scott Mayhew (6):
rpcbind: only log failures in check_callit() if connection logging is
enabled
rpcbind: bound stats lists in rpcbs_getaddr() and rpcbs_rmtcall()
rpcbind: fully disable remote calls when --enable-rmtcalls is unset
rpcbind: restrict RPCBPROC_GETSTAT to loopback callers
rpcbind: check for null netmask in addrmerge()
rpcbind: only free the forward slot if the reply xid matched the
request xid

 src/pmap_svc.c     |  2 ++
 src/rpcb_stat.c    | 37 ++++++++++++++++++++++++++++++++++---
 src/rpcb_svc.c     |  2 ++
 src/rpcb_svc_4.c   |  2 ++
 src/rpcb_svc_com.c | 24 ++++++++++++++++++++----
 src/rpcbind.h      |  5 +++++
 src/security.c     | 16 +++++++++++-----
 src/util.c         |  3 ++-
 8 files changed, 78 insertions(+), 13 deletions(-)
Signature · 1 line
2.55.0