CVE-2026-142884: NFSD: Complete a cld upcall when the daemon closes the pipe
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Complete a cld upcall when the daemon closes the pipe
Once nfsdcld has read a whole upcall, rpcpiperead() unlinks the message from every pipe list, so the purges in rpcpiperelease() and rpcclosepipes() no longer reach it. cldupcallops supplies no .releasepipe callback, and cldpipedestroymsg() returns without completing the upcall because a downcall is expected to follow. A daemon that exits between the read and the write therefore strands its waiter: the nfsd thread sleeps in TASKUNINTERRUPTIBLE in cldpipeupcall() and never returns, hung task warnings follow, and the server cannot be shut down.
Add a .releasepipe that completes every upcall the daemon has consumed. cuinflight distinguishes those from upcalls still queued on the pipe, which the framework purges before it calls this callback; cldpipedowncall() removes an upcall it accepts from cnlist under the same lock. Neither can be completed twice.
Fail the stranded upcall with -EPIPE rather than the -EAGAIN that makes cldpipeupcall() retry. The daemon consumed the request, so whether it acted on it before exiting is unknown.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Compensating control
Add a .release_pipe callback that completes every upcall consumed by the daemon, and fail a stranded upcall with -EPIPE rather than -EAGAIN.