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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **Published:** 2026-09-24T15:10:44.598Z
- **Modified:** 2026-11-23T08:17:21.853Z

## Who should check

- Anyone running Linux \>= 362063a595be959bc08f4163e6405a0266740091, \< 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de; \>= 362063a595be959bc08f4163e6405a0266740091, \< 94b450977c60261903c945419d2df4a464de60c4; \>= 362063a595be959bc08f4163e6405a0266740091, \< faac245ca739b66e96fb7bb43e21df537239a4e5; \>= 362063a595be959bc08f4163e6405a0266740091, \< 40bab0da844c142431a6b1cc21b4cf53491dac44; \>= 362063a595be959bc08f4163e6405a0266740091, \< df5922fe09a8131c793ffa86adf204999b0470f8; \>= 362063a595be959bc08f4163e6405a0266740091, \< 11a5fe42e1811f793e04ef885b639ea7668f439d
- Anyone running Linux 5.2

## 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.

## Affected and fixed versions

- Linux: \>= 362063a595be959bc08f4163e6405a0266740091, \< 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de; \>= 362063a595be959bc08f4163e6405a0266740091, \< 94b450977c60261903c945419d2df4a464de60c4; \>= 362063a595be959bc08f4163e6405a0266740091, \< faac245ca739b66e96fb7bb43e21df537239a4e5; \>= 362063a595be959bc08f4163e6405a0266740091, \< 40bab0da844c142431a6b1cc21b4cf53491dac44; \>= 362063a595be959bc08f4163e6405a0266740091, \< df5922fe09a8131c793ffa86adf204999b0470f8; \>= 362063a595be959bc08f4163e6405a0266740091, \< 11a5fe42e1811f793e04ef885b639ea7668f439d (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 11a5fe42e1811f793e04ef885b639ea7668f439d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-93221. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93221.md
Affected: Linux >= 362063a595be959bc08f4163e6405a0266740091, < 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de; >= 362063a595be959bc08f4163e6405a0266740091, < 94b450977c60261903c945419d2df4a464de60c4; >= 362063a595be959bc08f4163e6405a0266740091, < faac245ca739b66e96fb7bb43e21df537239a4e5; >= 362063a595be959bc08f416…
Fixed in: Linux 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de, Linux 94b450977c60261903c945419d2df4a464de60c4, Linux 40bab0da844c142431a6b1cc21b4cf53491dac44, Linux 11a5fe42e1811f793e04ef885b639ea7668f439d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-93221 being exploited?

There is no confirmed exploitation: CVE-2026-93221 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-93221?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-93221?

Linux \>= 362063a595be959bc08f4163e6405a0266740091, \< 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de; \>= 362063a595be959bc08f4163e6405a0266740091, \< 94b450977c60261903c945419d2df4a464de60c4; \>= 362063a595be959bc08f4163e6405a0266740091, \< faac245ca739b66e96fb7bb43e21df537239a4e5; \>= 362063a595be959bc08f4163e6405a0266740091, \< 40bab0da844c142431a6b1cc21b4cf53491dac44; \>= 362063a595be959bc08f4163e6405a0266740091, \< df5922fe09a8131c793ffa86adf204999b0470f8; \>= 362063a595be959bc08f4163e6405a0266740091, \< 11a5fe42e1811f793e04ef885b639ea7668f439d; Linux 5.2.

### Is there a fix for CVE-2026-93221?

Yes. Fixed in Linux 02f56a14d2dc17a687c3ee2d883a1c1c4878a9de, Linux 94b450977c60261903c945419d2df4a464de60c4, Linux 40bab0da844c142431a6b1cc21b4cf53491dac44, Linux 11a5fe42e1811f793e04ef885b639ea7668f439d. Upgrade Linux to 11a5fe42e1811f793e04ef885b639ea7668f439d or later.

### How do I check if I'm affected by CVE-2026-93221?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/02f56a14d2dc17a687c3ee2d883a1c1c4878a9de>
- other: <https://git.kernel.org/stable/c/94b450977c60261903c945419d2df4a464de60c4>
- other: <https://git.kernel.org/stable/c/faac245ca739b66e96fb7bb43e21df537239a4e5>
- other: <https://git.kernel.org/stable/c/40bab0da844c142431a6b1cc21b4cf53491dac44>
- other: <https://git.kernel.org/stable/c/df5922fe09a8131c793ffa86adf204999b0470f8>
- other: <https://git.kernel.org/stable/c/11a5fe42e1811f793e04ef885b639ea7668f439d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-93221>

HTML: <https://flawdb.com/CVE-2026-93221> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-93221>
