# CVE-2026-89689: nfsd: don't free session slots that are still in use

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; 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.65% (percentile 46, 2026-11-26)
- **Published:** 2026-09-11T19:46:09.976Z
- **Modified:** 2026-10-19T09:18:07.380Z

## Who should check

- Anyone running Linux \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< b449b134e7762ddf98653a4b1d3e76d2d212ea64; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< f5d22e372f4ac3eb287037a488c29691d52a6330
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: don't free session slots that are still in use

nfsd4\_sequence() can free the very slot it is currently processing.
When the session shrinker has reduced se\_target\_maxslots below
se\_fchannel.maxreqs, the shrink path checks three conditions before
calling free\_session\_slots():

  1. se\_target\_maxslots \< maxreqs  (shrink was advertised)
  2. slot-\>sl\_generation == se\_slot\_gen  (slot is up-to-date)
  3. seq-\>maxslots \<= se\_target\_maxslots  (client acknowledges)

However, seq-\>slotid is never checked against se\_target\_maxslots.
A client using a slot in the range \[se\_target\_maxslots, maxreqs) can
satisfy all three conditions: its slot has the current generation
(set by a prior SEQUENCE), and it sends sa\_highest\_slotid \<=
se\_target\_maxslots to acknowledge the reduction.

free\_session\_slots() then kfrees every slot at index \>=
se\_target\_maxslots, including the caller's own slot. The function
continues to write sl\_seqid, sl\_flags, sl\_generation, and stores the
dangling pointer in cstate-\>slot. Later, nfsd4\_store\_cache\_entry()
copies up to maxresp\_cached bytes of the compound reply into the freed
sl\_data\[\] array, corrupting whatever slab object now occupies that
address.

Additionally, a concurrent thread processing SEQUENCE on a different
high-numbered slot can have its slot freed out from under it.
NFSD4\_SLOT\_INUSE is set under nn-\>client\_lock before the lock is
released, so any concurrent thread past SEQUENCE will have its slot
marked. However, free\_session\_slots() does not check NFSD4\_SLOT\_INUSE
before freeing.

Fix both problems by:
 1. Checking that the current request's slotid is below the shrink
    boundary.
 2. Scanning slots in the to-be-freed range for NFSD4\_SLOT\_INUSE and
    deferring the shrink if any are active.

## Affected and fixed versions

- Linux: \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< b449b134e7762ddf98653a4b1d3e76d2d212ea64; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< f5d22e372f4ac3eb287037a488c29691d52a6330 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89689.md
Affected: Linux >= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, < 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa; >= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, < b449b134e7762ddf98653a4b1d3e76d2d212ea64; >= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, < f5d22e372f4ac3eb287037a488c29691d52a6330; Linux 6.14
Fixed in: Linux 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa

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-89689 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< b449b134e7762ddf98653a4b1d3e76d2d212ea64; \>= fc8738c68d0bbf5033dd98b4f63d277ecbd49fd7, \< f5d22e372f4ac3eb287037a488c29691d52a6330; Linux 6.14.

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

Yes. Fixed in Linux 72d40b103bb03f0124d3a3c8f71a30cbafaf6afa. No fix listed yet: follow the vendor advisory.

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

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/72d40b103bb03f0124d3a3c8f71a30cbafaf6afa>
- other: <https://git.kernel.org/stable/c/b449b134e7762ddf98653a4b1d3e76d2d212ea64>
- other: <https://git.kernel.org/stable/c/f5d22e372f4ac3eb287037a488c29691d52a6330>

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

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