# CVE-2026-90037: NFSD: Prevent client use-after-free during close_lru reaping

- 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.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-09-16T10:33:36.673Z
- Modified: 2026-10-30T13:20:39.433Z
- Assigned by: Linux

## Description

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

NFSD: Prevent client use-after-free during close_lru reaping

An nfs4_openowner left on nn->close_lru after its final CLOSE keeps
its last closed stateid in oo_last_closed_stid, holding only a raw
pointer to its nfs4_client. The laundromat reaps timed-out entries,
drops nn->client_lock, and calls nfs4_put_stid(), which dereferences
the client through cl_lock. Nothing pins the client across that
window, so a concurrent force_expire_client() can free it and
nfs4_put_stid() reads freed memory. __destroy_client() hits the same
race, walking clp->cl_openowners without cl_lock.

Pin the client with cl_rpc_users before dropping client_lock, and
skip clients already expiring. __destroy_client() then cleans up its
own close_lru entries through release_last_closed_stateid(), so
teardown no longer races the laundromat.

(As written by CVE List.)

## Affected

- Linux Linux: from 217526e7ecc9f6f243e976772e81eab7ab986a4c before 1d721729762a413015864b2a56d7fb86fb8efa9f; from 217526e7ecc9f6f243e976772e81eab7ab986a4c before adc34b5df5c5d87043cb500b0867fc1c4ad0117e; from 217526e7ecc9f6f243e976772e81eab7ab986a4c before 0763482227822f7343557f086afc382086d56c4c; from 217526e7ecc9f6f243e976772e81eab7ab986a4c before 83dd59ac1c3455c2c7d8ddb582d980a13199b9b3; from 217526e7ecc9f6f243e976772e81eab7ab986a4c before e57a9ed34ea8c17e831de59b8f1a6b2d80d347a1; from 217526e7ecc9f6f243e976772e81eab7ab986a4c before 2330b788d732f43668b965b3105b37ceb276dfea; 3.17 (not affected: before 3.17; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/1d721729762a413015864b2a56d7fb86fb8efa9f>
- <https://git.kernel.org/stable/c/adc34b5df5c5d87043cb500b0867fc1c4ad0117e>
- <https://git.kernel.org/stable/c/0763482227822f7343557f086afc382086d56c4c>
- <https://git.kernel.org/stable/c/83dd59ac1c3455c2c7d8ddb582d980a13199b9b3>
- <https://git.kernel.org/stable/c/e57a9ed34ea8c17e831de59b8f1a6b2d80d347a1>
- <https://git.kernel.org/stable/c/2330b788d732f43668b965b3105b37ceb276dfea>

## Sources

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

---

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