# CVE-2026-89658: NFSD: Prevent client use-after-free during NFSv4.0 revoked-state cleanup

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-02)
- Published: 2026-09-11T19:45:46.857Z
- Modified: 2026-10-19T09:18:03.637Z
- Assigned by: Linux

## Description

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

NFSD: Prevent client use-after-free during NFSv4.0 revoked-state cleanup

nfs40_clean_admin_revoked() takes a stateid reference under
clp->cl_lock, drops nn->client_lock, and calls
nfsd4_drop_revoked_stid(), which dereferences the stateid's client
through s->sc_client->cl_lock.  The stateid reference does not pin the
client, so a teardown racing the dropped lock can free the client
while nfsd4_drop_revoked_stid() is still using it.

This cleanup runs from the laundromat, so a periodic sweep can race
force_expire_client() driven by a write to the clients/<id>/ctl file.

Skip a client that is already expiring and otherwise pin it with
cl_rpc_users under client_lock before dropping the lock, matching
nfsd4_revoke_states().

(As written by CVE List.)

## Affected

- Linux Linux: from d688d8585e6bea5e4e37f7497feea93b6b0a469c before 0ae0d2b5c5a1b39c0b3c15d96b32a5b0c583d519; from d688d8585e6bea5e4e37f7497feea93b6b0a469c before b413ec5b23e3445dc9c4f273116078e2d4747626; from d688d8585e6bea5e4e37f7497feea93b6b0a469c before 81cf7f1413862f87b078920c838460a6a88aa030; from d688d8585e6bea5e4e37f7497feea93b6b0a469c before 7b4f8a1586c42d3afc3c0ac779af2db7ab1a5c55; 6.9 (not affected: before 6.9; from 6.12.109 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/0ae0d2b5c5a1b39c0b3c15d96b32a5b0c583d519>
- <https://git.kernel.org/stable/c/b413ec5b23e3445dc9c4f273116078e2d4747626>
- <https://git.kernel.org/stable/c/81cf7f1413862f87b078920c838460a6a88aa030>
- <https://git.kernel.org/stable/c/7b4f8a1586c42d3afc3c0ac779af2db7ab1a5c55>

## Sources

- CVE List: [CVE-2026-89658](https://www.cve.org/CVERecord?id=CVE-2026-89658), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89658](https://nvd.nist.gov/vuln/detail/CVE-2026-89658), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89658 · Whole record: https://cve.day/CVE-2026-89658.json · Rebuilt by cve.day 2026-11-25T22:59:38.102Z
