KernelScan.io

HIGH Introduced in 6.14

nfsd Setattr Deref

CVE-2026-89679

CVSS 7.5 / 10.0 NVD

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

KernelScan AI7.5HIGH

01

In the Linux kernel, the following vulnerability has been resolved: nfsd: fix null dereference in nfsd4_setattr for deleg timestamp attrs When a SETATTR request includes FATTR4_WORD2_TIME_DELEG_ACCESS or FATTR4_WORD2_TIME_DELEG_MODIFY in the attribute bitmap, nfsd4_setattr() sets deleg_attrs=true and calls nfs4_preprocess_stateid_op() to validate the stateid. If the client supplies the NFSv4 "one stateid" (all-0xFF bytes), check_special_stateids() returns nfs_ok without populating the output nfs4_stid pointer, because the special-stateid path in nfs4_preprocess_stateid_op() jumps to done: with s==NULL, and the "if (s)" block that would set *cstid is skipped. The local variable `st` remains NULL. Back in nfsd4_setattr(), the if (deleg_attrs) block then unconditionally dereferences st->sc_type (at offset 4 from NULL), causing a kernel oops. This is remotely triggerable by any NFSv4 client: send COMPOUND [PUTROOTFH, SETATTR(ONE_STATEID, {bmval2=FATTR4_WORD2_TIME_DELEG_ACCESS, ...})]. No authentication, delegation, or prior state is required. Fix by adding a NULL check before the dereference. A special stateid is not a delegation stateid, so the existing nfserr_bad_stateid return value is already correct; we only need to guard the pointer dereference itself.

02

Engine v0.6.0

Risk summary

A remote unauthenticated NFSv4 client can crash the kernel NFS server by sending a SETATTR request with the special "one stateid" and delegation timestamp attributes. The bug requires no authentication or prior state, only that the NFS server is running. The impact is a denial of service (kernel oops).

Affectedfs/nfsd/nfs4proc.c (nfsd)

Vulnerability analysis

When an NFSv4 client sends a SETATTR request that includes delegation timestamp attributes together with the special all-0xFF "one stateid," the server validates the stateid through a code path that returns success without filling in the state object pointer. The SETATTR handler then dereferences that NULL pointer to check the state type, causing a kernel oops. The fix adds a NULL check before the dereference so that a special stateid is rejected with the existing bad-stateid error instead of crashing. Any NFSv4 client that can reach the server can trigger this; no authentication, delegation, or prior state is required.

03

BranchIntroducedFixed inPatch commit
6.186.146.18.503c5119b799a7
7.26.147.2.43c896db12389
mainline6.147.3fe456c8c0931