# CVE-2026-89675: nfsd: fix UAF in async copy cancel and shutdown

> 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:45:59.635Z
- **Modified:** 2026-10-19T09:18:05.750Z

## Who should check

- Anyone running Linux \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 9031493ef7369d5c59c4bacc96f0c85965f09a98; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< a385cf5e016b748babf94cc664e43a26e17db117; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95
- Anyone running Linux 4.20

## Description

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

nfsd: fix UAF in async copy cancel and shutdown

An async copy could be freed or used after free while a teardown caller
(OFFLOAD\_CANCEL, nfsd4\_shutdown\_copy, nfsd4\_cancel\_copy\_by\_sb) raced the
copy kthread:

  - find\_async\_copy() bumped copy-\>refcount but left the copy on
    clp-\>async\_copies, so the reaper's cleanup\_async\_copy() could run
    release\_copy\_files() concurrently with a cancel/shutdown caller. Both
    put and NULL nf\_src/nf\_dst without a common lock, double-putting the
    nfsd\_file and freeing it early.

  - nfsd4\_do\_async\_copy() set NFSD4\_COPY\_F\_STOPPED before its final uses
    of the copy (nfsd\_update\_cmtime\_attr() on copy-\>nf\_dst,
    nfsd4\_send\_cb\_offload()). nfsd4\_stop\_copy() treats a set STOPPED bit
    as "kthread done, skip kthread\_stop()", so a teardown caller ran
    release\_copy\_files() -- which puts and NULLs nf\_dst -- while the
    kthread still dereferenced it (NULL/UAF).

  - copy-\>copy\_task was never pinned. The one-shot kthread self-reaps on
    return, so kthread\_stop()'s get\_task\_struct() could touch a freed
    task\_struct.

  - co\_cb is embedded in the copy, but nfsd4\_send\_cb\_offload() held a
    reference only on the client, so a concurrent teardown could free
    the copy while the CB\_OFFLOAD callback was in flight.

Fix the teardown lifetime as a whole:

  - find\_async\_copy() unlinks the copy (clear cp\_clp, list\_del\_init)
    under async\_lock; the cancel, shutdown, and sb-cancel paths drop the
    list-membership reference via nfs4\_put\_copy() after nfsd4\_stop\_copy().
    Drop the now-redundant list\_del fixup from cleanup\_async\_copy().

  - Because unlinking hides the copy from the reaper, its
    cleanup\_async\_copy() can no longer remove the copy's s2s\_cp\_stateids
    entry; the cancel/shutdown/sb-cancel paths now call
    nfs4\_free\_copy\_state() themselves (while cp\_clp is still valid) so
    the entry does not dangle at freed memory for the laundromat and
    manage\_cpntf\_state() to dereference.

  - Give the kthread its own reference, taken in nfsd4\_copy() before
    wake\_up\_process() and dropped at the end of nfsd4\_do\_async\_copy();
    call wake\_up\_process() before list\_add().

  - Pin the task\_struct with get\_task\_struct() in nfsd4\_copy(), released
    in nfs4\_put\_copy(), so kthread\_stop() is safe whenever the kthread
    exits. Set NFSD4\_COPY\_F\_STOPPED only in nfsd4\_stop\_copy(), which now
    always kthread\_stop()s before release\_copy\_files(); completion is
    still reported via NFSD4\_COPY\_F\_COMPLETED, so
    nfsd4\_has\_active\_async\_copies() is unaffected. Each teardown caller
    removes the copy from clp-\>async\_copies first, so kthread\_stop() runs
    exactly once.

  - Take a copy reference in nfsd4\_send\_cb\_offload(), dropped in
    nfsd4\_cb\_offload\_release(). The kthread still holds its own reference
    there, so the refcount\_inc() cannot race the final free.

  - Read cp\_clp with smp\_load\_acquire() to pair with the unordered
    set\_bit()/clear\_bit() writers (Documentation/atomic\_bitops.rst).

## Affected and fixed versions

- Linux: \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 9031493ef7369d5c59c4bacc96f0c85965f09a98; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< a385cf5e016b748babf94cc664e43a26e17db117; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-89675.md
Affected: Linux >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 9031493ef7369d5c59c4bacc96f0c85965f09a98; >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < a385cf5e016b748babf94cc664e43a26e17db117; >= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, < 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95; Linux 4.20
Fixed in: Linux 9031493ef7369d5c59c4bacc96f0c85965f09a98, Linux 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95

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

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

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

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

Linux \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 9031493ef7369d5c59c4bacc96f0c85965f09a98; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< a385cf5e016b748babf94cc664e43a26e17db117; \>= e0639dc5805a9d4faaa2c07ad98fa853b9529dd3, \< 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95; Linux 4.20.

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

Yes. Fixed in Linux 9031493ef7369d5c59c4bacc96f0c85965f09a98, Linux 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95. Upgrade Linux to 62c0f6eaf050bb9284c1f9cac6ed1770092e6b95 or later.

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

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/9031493ef7369d5c59c4bacc96f0c85965f09a98>
- other: <https://git.kernel.org/stable/c/a385cf5e016b748babf94cc664e43a26e17db117>
- other: <https://git.kernel.org/stable/c/62c0f6eaf050bb9284c1f9cac6ed1770092e6b95>

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

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