KernelScan.io

CRITICAL Introduced in 4.0

nfsd LayoutStateid Race

CVE-2026-89686

CVSS 9.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI5.3MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: nfsd: fix BUG_ON in nfsd4_alloc_layout_stateid on racing delegation revoke nfsd4_alloc_layout_stateid reads fp->fi_deleg_file without holding fi_lock when the parent stateid is a delegation. A concurrent delegation revoke via the laundromat can clear fi_deleg_file under fi_lock, causing nfsd_file_get() to return NULL and triggering the BUG_ON. This race is client-reachable: two NFS clients can trigger it by having one hold a delegation while another opens the same file to force a recall. When the first client doesn't respond to the recall, the laundromat revokes it. A concurrent LAYOUTGET from any client using the delegation stateid hits the race window. Fix this by taking fi_lock around the fi_deleg_file read in the SC_TYPE_DELEG path, matching the locking discipline of the find_any_file() arm, and replacing the BUG_ON with a graceful error return that cleans up the partially-initialized layout stateid.

02

Engine v0.6.0

Risk summary

A remote NFS client can trigger a kernel panic on an NFS server by racing a LAYOUTGET operation against delegation revocation. The bug requires pNFS layout support and two cooperating clients, making it exploitable on any server exporting pNFS-enabled filesystems.

Affectedfs/nfsd/nfs4layouts.c (nfsd)

Vulnerability analysis

The NFS server can crash while handling layout requests because it reads a delegation reference without synchronizing with background cleanup. A maintenance task can clear that reference at the same moment, causing the server to hit a fatal assertion and panic. The fix ensures the read is synchronized so the reference remains valid, and replaces the fatal assertion with a normal error that safely discards the incomplete request. Any NFS client that can reach the server can trigger this by coordinating with another client to force a delegation recall and revocation while sending a layout request.

03

BranchIntroducedFixed inPatch commit
6.124.06.12.109c517f2749875
6.184.06.18.50607a56fea772
6.64.06.6.160d12af460df27
7.24.07.2.497bda8b4284d
mainline4.07.3ca94ba361720
cip/6.124.06.12.111-cip32c517f2749875

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.189-cip61)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.271-cip78)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.268-cip77-rt34)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)