🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by "Chuck Lever" Fri, 23 Oct 2026 18:02
Re: [PATCH net 1/1] SUNRPC: reject AUTH_TLS on backchannel requests
#6887
Author: "Chuck Lever"
Date: Fri, 23 Oct 2026 18:02
48 lines
11747 bytes

On Fri, Oct 23, 2026, at 1:55 AM, Zhiling Zou wrote:
> svc_process_bc() processes reverse-direction calls with rqstp->rq_xprt
> set to NULL. A backchannel caller can supply RPC_AUTH_TLS, which selects
> svcauth_tls_accept(). That handler dereferences rq_xprt while checking
> for transport handshake support, causing a NULL pointer dereference
> before the RPC program can reject the request.
>
> Reject AUTH_TLS credentials when no service transport is present. The
> backchannel request is then denied without accessing rq_xprt.
>
> Fixes: 74aaf96feaca ("SUNRPC: Teach server to recognize RPC_AUTH_TLS")
> Cc: stable@vger.kernel.org
> Reported-by: Vega <vega@nebusec.ai>
> Assisted-by: LLM
> Signed-off-by: Zhiling Zou <zhilinz@nebusec.ai>
> ---
>  net/sunrpc/svcauth_unix.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
> index 31a1bc60a5f6d..bac38f3ce9a6c 100644
> --- a/net/sunrpc/svcauth_unix.c
> +++ b/net/sunrpc/svcauth_unix.c
> @@ -1128,6 +1128,11 @@ svcauth_tls_accept(struct svc_rqst *rqstp)
>  		rqstp->rq_auth_stat = rpc_autherr_badcred;
>  		return SVC_DENIED;
>  	}
> +	if (unlikely(!xprt)) {
> +		/* Backchannel requests do not have a service transport. */
> +		rqstp->rq_auth_stat = rpc_autherr_badcred;
> +		return SVC_DENIED;
> +	}
> 
>  	/* Signal that mapping to nobody uid/gid is required */
>  	cred->cr_uid = INVALID_UID;
> -- 
> 2.55.0

Commit a54a573bceaf, "sunrpc: reject AUTH_TLS on backchannel to prevent
NULL-deref in svcauth_tls_accept", now in the nfsd-testing branch,
already addresses this issue. Thanks for confirming the finding!


-- 
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads