CVE-2026-99553: nfsd: fix race between client_info_show() and free_client()
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix race between clientinfoshow() and freeclient()
clientinfoshow() renders /proc/fs/nfsd/clients/<id>/info and walks clp->clsessions under clp->cllock to print each session's slot counts. freeclient() tears down the same list without taking cllock, and is the only unlocked mutator of clsessions. A reader can observe a client mid-teardown because getnfsdfsclp() pins the nfs4client but not its sessions: freeclient() frees every session before calling nfsdclientrmdir(), so an in-flight seqfile reader can follow a listdel()'d node whose ->next now holds LISTPOISON1 and take a general protection fault:
Oops: general protection fault, probably for non-canonical address 0xdead00000000014c CPU: 1 UID: 0 PID: 132488 Comm: cat RIP: 0010:clientinfoshow+0x2bf/0x3d0 RAX: dead000000000100 Call Trace: seqreaditer+0x12a/0x4b0 seqread+0xf1/0x130 vfsread+0xbf/0x350 ksysread+0x6f/0xf0 dosyscall64+0x8b/0xcb0 entrySYSCALL64afterhwframe+0x76/0x7e Kernel panic - not syncing: Fatal exception
Detach clsessions onto a local reaplist under cllock, then free the sessions after dropping the lock. Removing entries from clsessions under cllock matches unhashsession(), and the detach-then-reap shape matches how destroyclient() reaps cldelegations. The sessions cannot be freed while cllock is held, since freesession() calls nfsd4delconns(), which re-acquires it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In nfsd client teardown, detach cl_sessions onto a local reap list while holding cl_lock, then free the sessions after dropping the lock.