{"id":"CVE-2026-89681","aliases":["CVE-2026-89681"],"related":[],"kind":"vulnerability","state":"published","title":"nfsd: fix layout fence worker double-reference race","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix layout fence worker double-reference race\n\nThe workqueue core clears WORK_STRUCT_PENDING before the callback\nis invoked, so delayed_work_pending() in lm_breaker_timedout() can\nreturn false while the fence worker is already running. This lets\nthe breaker take a duplicate sc_count reference and schedule a new\nworker that coalesces with the in-progress one. The extra reference\nis never put, leaking the layout stateid.\n\nReplace the racy delayed_work_pending() check with an\nls_fence_inflight boolean set atomically with\nrefcount_inc_not_zero() under ls_lock, and cleared under ls_lock\nbefore the final nfs4_put_stid() on the dispose path; the retry\npath intentionally retains it.  Remove the self-rearm\nmod_delayed_work() at the top of the worker.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix layout fence worker double-reference race\n\nThe workqueue core clears WORK_STRUCT_PENDING before the callback\nis invoked, so delayed_work_pending() in lm_breaker_timedout() can\nreturn false while the fence worker is already running. This lets\nthe breaker take a duplicate sc_count reference and schedule a new\nworker that coalesces with the in-progress one. The extra reference\nis never put, leaking the layout stateid.\n\nReplace the racy delayed_work_pending() check with an\nls_fence_inflight boolean set atomically with\nrefcount_inc_not_zero() under ls_lock, and cleared under ls_lock\nbefore the final nfs4_put_stid() on the dispose path; the retry\npath intentionally retains it.  Remove the self-rearm\nmod_delayed_work() at the top of the worker.","source":"cvelist"}],"published":"2026-09-11T19:46:04.121Z","modified":"2026-10-19T09:18:06.443Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f52792f484ba2316853736856dde19b7e7458861","fixed":"a278d361e0e8f242211891193d56483a7a9f47a8","status":"affected"},{"type":"git","introduced":"f52792f484ba2316853736856dde19b7e7458861","fixed":"8580571227451384399b3fa53fcde19848c48e5a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a278d361e0e8f242211891193d56483a7a9f47a8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8580571227451384399b3fa53fcde19848c48e5a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89681","url":"https://www.cve.org/CVERecord?id=CVE-2026-89681","licence":"CVE Terms of Use","modified":"2026-10-19T08:50:54.644Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89681","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89681","licence":"Public domain","modified":"2026-10-19T09:18:06.443Z"}],"updatedAt":"2026-11-25T22:59:38.111Z","epss":{"score":0.00553,"percentile":0.39903,"date":"2026-11-30T12:00:22.000Z"}}