Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CECB49EC66 for ; Thu, 24 Sep 2026 15:12:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262732; cv=none; b=puIU2hXZ99ZKA7gcb/vUKmXXKEM7ZOv8Gz8xTYyFqzPwTRblMpuhFrKPKwBSt5J/ZQi8dWrN+cYPZmzwZhFrby468GV1ghPhI+jP2R9M86b3jFe7J1qZBK5iYpZAJSYI23k3jQEVDB3dtoqQ73ujuHNA8qyt059eRZBa4xNMtV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262732; c=relaxed/simple; bh=YCC3HpRBKOQbzJsKooF8KxROa7GGAC3OSZmCE+/bhAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D8XDsgnTnyTm5KXAehUepS+rY6cr3Pzt+Q7tO/1IpOTnCGRK5z6EO/63FipY8UCRThO/ltLLZoqIODzGYtM9zIq4x4ttIVyfAm1/q3D6+6nFuvc5VXAyLQGmI39fGthQKkwbvRSrFqYkMrgPQ/I78/smRN5VCM8GBamOvUO4A2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fHKGIvWF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fHKGIvWF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B75531F000FF; Thu, 24 Sep 2026 15:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790262730; bh=06v9Uz3A5FyvMa5Owjw7LffP1tvr/tBVXtlmaLs48Iw=; h=From:To:Cc:Subject:Date:Reply-To; b=fHKGIvWFkcuuCwRONaNRSbUECVrLU0OGRmEKgoosNTercpqIKiaWX50Mj9wXwSHEp deaa7QFkOjPIWPBDbMMv5uP//3+7idxs8H/Bd6wPZnLvkEifsr04RyB+JRQzwZCpjJ u1NHlu2rvNXfJz4S7utDAgYo1qUjGkFxb6kVwVQc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93221: nfsd: convert nfsd_net boolean flags to unsigned long flags word Date: Thu, 24 Sep 2026 17:10:57 +0200 Message-ID: <2026092446-CVE-2026-93221-07e8@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ihwy/AYRQaaqsFm/lXmTimHVJGAOQSmDWITW+8fyLoE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbbcsMMrYF1FicvsNiHPjOyTkk1qLSJX/iuaoWd7u5/ lrRBYodsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMBHJKob5ufWHv5848OZH0pJX /ZUF/zjTlSIjGRZ0G12X83txjZ1jTcO3i77vfm1gMggEAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: nfsd: convert nfsd_net boolean flags to unsigned long flags word nfsd_net contains several boolean fields that are accessed from concurrent contexts without serialization. In particular, nfsd4_end_grace() guards its drain path with a plain bool: if (nn->grace_ended) return; nn->grace_ended = true; The read and the write are independent, and nothing in struct nfsd_net serializes them. At least two contexts can reach this code with no lock held: laundromat path laundry_wq kworker nfs4_laundromat() nfsd4_end_grace() RECLAIM_COMPLETE path nfsd compound kthread nfsd4_reclaim_complete() inc_reclaim_complete() nfsd4_end_grace() Both callers can observe grace_ended == false on different CPUs, both store true, and both proceed into nfsd4_record_grace_done(), which invokes the active client_tracking_ops->grace_done callback. For tracking ops that drain reclaim_str_hashtbl (legacy_tracking_ops via nfsd4_recdir_purge_old, and the cld v1+ ops via nfsd4_cld_grace_done), grace_done calls nfs4_release_reclaim(), which walks every bucket of reclaim_str_hashtbl with no lock and calls nfs4_remove_reclaim_record() (list_del + kfree) on each entry. Two concurrent walkers corrupt the list and double-free every nfs4_client_reclaim. A concurrent nfsd4_find_reclaim_client() iterating the same bucket reads through freed memory. A third call site exists in nfs4_state_start_net() on the skip_grace startup path, but it runs under nfsd_mutex before any client has connected and before the laundromat's first delayed work fires, so it cannot race with the two callers above. Replace the scattered boolean fields in nfsd_net with a single unsigned long flags word and an enum nfsd_net_flag for the bit positions. The grace_ended race is fixed by using test_and_set_bit(), which is atomic on all architectures. The remaining flags (grace_end_forced, in_grace, somebody_reclaimed, track_reclaim_completes, nfsd_net_up, lockd_up) are converted to use test_bit/set_bit/clear_bit for consistency. This avoids sub-word cmpxchg issues on architectures like Hexagon that only support word-sized atomic operations. The Linux kernel CVE team has assigned CVE-2026-93221 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 362063a595be959bc08f4163e6405a0266740091 and fixed in 7.2.4 with commit df5922fe09a8131c793ffa86adf204999b0470f8 Issue introduced in 5.2 with commit 362063a595be959bc08f4163e6405a0266740091 and fixed in 7.3-rc1 with commit 11a5fe42e1811f793e04ef885b639ea7668f439d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93221 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/nfsd/netns.h fs/nfsd/nfs4proc.c fs/nfsd/nfs4recover.c fs/nfsd/nfs4state.c fs/nfsd/nfsctl.c fs/nfsd/nfssvc.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/df5922fe09a8131c793ffa86adf204999b0470f8 https://git.kernel.org/stable/c/11a5fe42e1811f793e04ef885b639ea7668f439d