# CVE-2026-89708: nfsd: RCU-protect cl\_cb\_session to fix use-after-free on session teardown

> 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:24.061Z
- **Modified:** 2026-10-19T09:18:09.590Z

## Who should check

- Anyone running Linux \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 2775ec1d617e665eab71ce0f13ab1f7959713a2b; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< f164eb52b6f3cbf40f07fe379f9f421f88e02f76; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 01c5d5f58a5db9b0ee5afba2e49d3157788687b2
- Anyone running Linux 2.6.38

## Description

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

nfsd: RCU-protect cl\_cb\_session to fix use-after-free on session teardown

After a DESTROY\_SESSION the per-session teardown path can free a
session while rpciod still holds an inflight callback rpc\_task that
dereferences clp-\>cl\_cb\_session.  nfsd4\_probe\_callback\_sync() flushes
cl\_callback\_wq, but once nfsd4\_run\_cb\_work() has called
rpc\_call\_async() the rpc\_task lives on rpciod; flushing the workqueue
does not wait for it.  rpc\_shutdown\_client() does drain rpciod tasks,
but uses a 1-second wait\_event\_timeout — tasks stuck in rpc\_delay()
(e.g. 2-second NFS4ERR\_DELAY retries) can outlive the drain.

    destroy path                       rpciod
    ------------                       ------
    unhash\_session(ses)
    nfsd4\_probe\_callback\_sync(clp)
      flush\_workqueue(cl\_callback\_wq)
      /\* returns; rpc\_task still live \*/
    nfsd4\_put\_session\_locked(ses)
    free\_session(ses) -\> kfree(ses)
                                       nfsd4\_cb\_sequence\_done()
                                         reads cb\_clp-\>cl\_cb\_session
                                         /\* freed slab \*/

A second window exists in nfsd4\_process\_cb\_update().  When
\_\_nfsd4\_find\_backchannel() returns NULL because unhash\_session() has
already removed the destroyed session from cl\_sessions,
setup\_callback\_client() takes the v4.1 early return so
clp-\>cl\_cb\_session = ses never fires and the field retains a pointer
to the about-to-be-freed session.

Fix both by converting cl\_cb\_session to an RCU-protected pointer:

  - Move the cl\_cb\_session = ses assignment in setup\_callback\_client()
    to after rpc\_create() succeeds, so it is only published when a
    working backchannel exists.  Clear cl\_cb\_session on the error
    return in nfsd4\_process\_cb\_update().  Both stores use
    rcu\_assign\_pointer().

  - Annotate cl\_cb\_session with \_\_rcu.  All rpciod-side readers use
    rcu\_read\_lock()/rcu\_dereference() and check for NULL, bailing to
    the appropriate error or requeue path:
    encode\_cb\_sequence4args(), decode\_cb\_sequence4resok(),
    nfsd41\_cb\_get\_slot(), nfsd41\_cb\_release\_slot(),
    nfsd4\_cb\_prepare(), and nfsd4\_cb\_sequence\_done().

  - Switch \_\_free\_session() from kfree() to kfree\_rcu() so the
    session slab is not reclaimed until after an RCU grace period,
    guaranteeing that rpciod readers inside rcu\_read\_lock() never
    dereference freed memory.

  - Pass the session pointer to the nfsd\_cb\_seq\_status and
    nfsd\_cb\_free\_slot tracepoints instead of having them re-read
    cl\_cb\_session.

  - nfsd4\_cb\_prepare() calls rpc\_exit() when the session is NULL,
    routing through the done/release path to requeue the callback.

## Affected and fixed versions

- Linux: \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 2775ec1d617e665eab71ce0f13ab1f7959713a2b; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< f164eb52b6f3cbf40f07fe379f9f421f88e02f76; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 01c5d5f58a5db9b0ee5afba2e49d3157788687b2 (cvelist)
- Linux: 2.6.38 (cvelist)

## Mitigation

- Upgrade Linux to 01c5d5f58a5db9b0ee5afba2e49d3157788687b2 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-89708. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89708.md
Affected: Linux >= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, < 2775ec1d617e665eab71ce0f13ab1f7959713a2b; >= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, < f164eb52b6f3cbf40f07fe379f9f421f88e02f76; >= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, < 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25; >= dcbeaa68dbbdacbbb330a86…
Fixed in: Linux 2775ec1d617e665eab71ce0f13ab1f7959713a2b, Linux 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25, Linux 01c5d5f58a5db9b0ee5afba2e49d3157788687b2

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

There is no confirmed exploitation: CVE-2026-89708 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-89708?

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

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

Linux \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 2775ec1d617e665eab71ce0f13ab1f7959713a2b; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< f164eb52b6f3cbf40f07fe379f9f421f88e02f76; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25; \>= dcbeaa68dbbdacbbb330a86c7fc95a28473fc209, \< 01c5d5f58a5db9b0ee5afba2e49d3157788687b2; Linux 2.6.38.

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

Yes. Fixed in Linux 2775ec1d617e665eab71ce0f13ab1f7959713a2b, Linux 13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25, Linux 01c5d5f58a5db9b0ee5afba2e49d3157788687b2. Upgrade Linux to 01c5d5f58a5db9b0ee5afba2e49d3157788687b2 or later.

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

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/2775ec1d617e665eab71ce0f13ab1f7959713a2b>
- other: <https://git.kernel.org/stable/c/f164eb52b6f3cbf40f07fe379f9f421f88e02f76>
- other: <https://git.kernel.org/stable/c/13bdd486c3aad4fc19e6d8b9c3556a4b4c190b25>
- other: <https://git.kernel.org/stable/c/01c5d5f58a5db9b0ee5afba2e49d3157788687b2>

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

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