CVE-2026-99310: nfsd: hold cl_lock in client_has_openowners()
In the Linux kernel, the following vulnerability has been resolved:
nfsd: hold cllock in clienthasopenowners()
clienthasopenowners() walks clp->clopenowners and reads sostateids without clp->cllock. nfs4putstateowner() unhashes that openowner under cllock and then frees it, so a concurrent EXCHANGEID with mismatched creds can use-after-free the nfs4openowner.
BUG: KASAN: slab-use-after-free in clienthasstate+0x10a/0x140 fs/nfsd/nfs4state.c:3718 clienthasopenowners() nfsd4exchangeid nfsd4proccompound nfsddispatch svcprocess
Take clp->cllock while clienthasopenowners() walks the openowner list.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Take clp->cl_lock while client_has_openowners() walks clp->cl_openowners and reads so_stateids.