# CVE-2026-93221: nfsd: convert nfsd\_net boolean flags to unsigned long flags word

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de, 11a5fe42e1811f793e04ef885b639ea7668f439d, 40bab0da844c142431a6b1cc21b4cf53491dac44, 94b450977c60261903c945419d2df4a464de60c4, df5922fe09a8131c793ffa86adf204999b0470f8, faac245ca739b66e96fb7bb43e21df537239a4e5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-24 · Modified: 2026-11-23
- Aliases: UBUNTU-CVE-2026-93221, DEBIAN-CVE-2026-93221
- Record: https://cvemate.com/vulnerability/CVE-2026-93221 · JSON: https://cvemate.com/vulnerability/CVE-2026-93221/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.547%, percentile 47.315%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 168)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.115-2 \| \< 7.2.6-1
- debian linux-6.12 (Debian): \< 6.12.115-2~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-151.151 \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1070.76 \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1070.76~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1070.76+fips1

## References (first 20 of 25)

- <https://git.kernel.org/stable/c/df5922fe09a8131c793ffa86adf204999b0470f8>
- <https://git.kernel.org/stable/c/11a5fe42e1811f793e04ef885b639ea7668f439d>
- <https://ubuntu.com/security/CVE-2026-93221>
- <https://www.cve.org/CVERecord?id=CVE-2026-93221>
- <https://security-tracker.debian.org/tracker/CVE-2026-93221>
- <https://git.kernel.org/stable/c/40bab0da844c142431a6b1cc21b4cf53491dac44>
- <https://git.kernel.org/stable/c/94b450977c60261903c945419d2df4a464de60c4>
- <https://git.kernel.org/stable/c/faac245ca739b66e96fb7bb43e21df537239a4e5>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8960-1>
- <https://ubuntu.com/security/notices/USN-9002-1>
- <https://ubuntu.com/security/notices/USN-9020-1>
- <https://ubuntu.com/security/notices/USN-9019-1>
- <https://ubuntu.com/security/notices/USN-9021-1>
- <https://ubuntu.com/security/notices/USN-9160-1>
- <https://ubuntu.com/security/notices/USN-9173-1>
- <https://ubuntu.com/security/notices/USN-9175-1>
- <https://ubuntu.com/security/notices/USN-9174-1>
- <https://git.kernel.org/stable/c/02f56a14d2dc17a687c3ee2d883a1c1c4878a9de>
- <https://ubuntu.com/security/notices/USN-9183-1>

---

Data as of 2026-12-05T03:57:25.675Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
