# CVE-2026-89681: nfsd: fix layout fence worker double-reference race

- 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.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-09-11T19:46:04.121Z
- Modified: 2026-10-19T09:18:06.443Z
- Assigned by: Linux

## Description

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

nfsd: fix layout fence worker double-reference race

The workqueue core clears WORK_STRUCT_PENDING before the callback
is invoked, so delayed_work_pending() in lm_breaker_timedout() can
return false while the fence worker is already running. This lets
the breaker take a duplicate sc_count reference and schedule a new
worker that coalesces with the in-progress one. The extra reference
is never put, leaking the layout stateid.

Replace the racy delayed_work_pending() check with an
ls_fence_inflight boolean set atomically with
refcount_inc_not_zero() under ls_lock, and cleared under ls_lock
before the final nfs4_put_stid() on the dispose path; the retry
path intentionally retains it.  Remove the self-rearm
mod_delayed_work() at the top of the worker.

(As written by CVE List.)

## Affected

- Linux Linux: from f52792f484ba2316853736856dde19b7e7458861 before a278d361e0e8f242211891193d56483a7a9f47a8; from f52792f484ba2316853736856dde19b7e7458861 before 8580571227451384399b3fa53fcde19848c48e5a; 7.1 (not affected: before 7.1; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/a278d361e0e8f242211891193d56483a7a9f47a8>
- <https://git.kernel.org/stable/c/8580571227451384399b3fa53fcde19848c48e5a>

## Sources

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

---

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