CVE-2026-89681
published critical CVSS 3.1 · 9.8nfsd: fix layout fence worker double-reference race
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf52792f484ba2316853736856dde19b7e7458861 to < a278d361e0e8f242211891193d56483a7a9f47a8 · f52792f484ba2316853736856dde19b7e7458861 to < 8580571227451384399b3fa53fcde19848c48e5a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.2.4 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.2.6-1.1 | OPENSUSE-SU-2026:11805-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The flaw is in nfsd pNFS SCSI layout fencing (nfsd4_layout_lm_breaker_timedout → nfsd4_layout_fence_worker in fs/nfsd/nfs4layouts.c), reached over NFSv4.1 COMPOUND on TCP/2049: LAYOUTGET installs an FL_LAYOUT lease, then a conflicting OPEN/WRITE hits nfsd_open_break_lease → time_out_leases after recall timeout. AC:L - The attacker controls both sides of the delayed_work_pending race: one client holds a SCSI layout and ignores CB_LAYOUTRECALL so the fence worker runs, while other attacker connections spam OPEN/WRITE so concurrent nfsd threads call lm_breaker_timedout while WORK_STRUCT_PENDING is already clear; the sequence is retryable. PR:N - Typical nfsd exports accept AUTH_SYS/AUTH_NULL with no cryptographic RPC authentication; EXCHANGE_ID, CREATE_SESSION, OPEN, and LAYOUTGET succeed for any host permitted by the export, so a remote NFSv4.1 client needs no kernel-verified credentials or local account on the server. UI:N - The attacker is the NFS client and sends LAYOUTGET plus conflicting OPEN/WRITE compounds against an already-running pNFS SCSI export; no victim user must mount a filesystem, open a file, or take any other action on the host. S:U - Impact is kernel nfsd layout-stateid and nfs4_client lifetime on the NFS server host and does not cross a VM, hypervisor, sandbox, or IOMMU security boundary. C:H - The unmatched sc_count leaves the nfs4_layout_stateid on nfs4_file.fi_lo_states without pinning nfs4_client; after that client is expired, a later LAYOUTGET walks the list and nfsd4_run_cb dereferences freed cb_clp, a use-after-free that can be reused for arbitrary kernel reads. I:H - The same use-after-free of nfs4_client (cl_cb_session, cl_callback_wq, and nfsd4_callback_ops) from nfsd4_recall_file_layout → nfsd4_run_cb enables heap spraying and function-pointer hijack of the CB_LAYOUTRECALL work path. A:H - Each won race permanently leaks a layout stateid (and can pin nfs4_client via cl_lo_states); repeating LAYOUTGET/fence races exhausts nfsd state and kernel memory, and the later nfs4_client use-after-free oopses or panics the nfsd thread.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f52792f484ba2316853736856dde19b7e7458861 to < a278d361e0e8f242211891193d56483a7a9f47a8 (affected · git)f52792f484ba2316853736856dde19b7e7458861 to < 8580571227451384399b3fa53fcde19848c48e5a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.2.4 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
nfsd: fix layout fence worker double-reference race
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dcb266316d0efbe24cbf0f5ae46ba7d404d05901d3b6733e27b2a5953d626664
- Ingested
- 19 Oct 2026, 08:57:05 UTC
- Source record
- Official CVE record