CVE-2026-99352: SUNRPC: trace an accepted transport before publishing it
In the Linux kernel, the following vulnerability has been resolved:
SUNRPC: trace an accepted transport before publishing it
svchandlexprt() publishes a newly accepted transport before tracing it. svcaddnewtempxprt() places the transport on svtempsocks and clears XPTBUSY, so another nfsd thread can dequeue it at once. If the peer has already closed the connection, that thread runs svcdeletexprt(), which drops the list reference, the only reference the new transport holds. tracesvcxprtaccept() then reads the transport's addresses and network namespace from freed memory.
Before publication the accepting thread owns the transport exclusively: XPTBUSY is still set from svcxprtinit() and the transport is on no list. Emit the tracepoint there.
[ cel: trace before publication instead of taking an extra reference ]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In svc_handle_xprt(), trace a newly accepted transport with trace_svc_xprt_accept() before publishing it.