# CVE-2026-90038: NFSD: Prevent client use-after-free during export state revocation

- 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.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-09-16T10:33:37.366Z
- Modified: 2026-10-19T09:18:52.043Z
- Assigned by: Linux

## Description

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

NFSD: Prevent client use-after-free during export state revocation

nfsd4_revoke_export_states() has the same use-after-free as
nfsd4_revoke_states(): it drops nn->client_lock across
revoke_one_stid() and the following read of clp->cl_minorversion, but
the stateid reference it holds does not pin the client.  A teardown
racing the dropped lock can free the client while revoke_one_stid()
still dereferences it.

exportfs -u drives this path through NFSD_CMD_UNLOCK_EXPORT, so an
administrator removing an export can race a client expiry.

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 2eac189bb059d31a29937b29ee0f477394198610 before c05ae58fe06ce2ac34312f649e71c3596bdde358; from 2eac189bb059d31a29937b29ee0f477394198610 before 2108de53568a64936a0da3e04d85c35df98d3fb6; 7.2 (not affected: before 7.2; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/c05ae58fe06ce2ac34312f649e71c3596bdde358>
- <https://git.kernel.org/stable/c/2108de53568a64936a0da3e04d85c35df98d3fb6>

## Sources

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

---

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