KernelScan.io

CRITICAL Introduced in 2.6.13

nfsd SetAcl Bypass

CVE-2026-89672

CVSS 9.1 / 10.0 NVD

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

KernelScan AI6.9MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: nfsd: gate nfs2 setacl by argp->mask The NFSACL v2 SETACL path shares the decoder convention used by its v3 sibling: nfsaclsvc_decode_setaclargs() fills in argp->acl_access only when NFS_ACL is set in the request mask and argp->acl_default only when NFS_DFACL is set, leaving the other pointer NULL because the argument buffer is zeroed up to pc_argzero before decode. nfsacld_proc_setacl() then hands both pointers to set_posix_acl() unconditionally. set_posix_acl(idmap, dentry, type, NULL) is the VFS "remove this ACL type" operation, so an omitted arm is indistinguishable from an explicit request to delete that ACL. A SETACL carrying only NFS_ACL silently strips the directory's default ACL; mask=0 strips both. This is the same defect just fixed in nfsd3_proc_setacl(); apply the same remedy. Gate each set_posix_acl() call on its mask bit and initialize error to 0 so that a request with neither bit set leaves the on-disk ACLs untouched and returns success. The out_drop_lock path and the unconditional posix_acl_release() in nfsaclsvc_release_setacl() already tolerate the skipped arms.

02

Engine v0.6.0

Risk summary

An NFS client with access to an export can send a crafted NFSACL v2 SETACL request that silently strips access or default ACLs from files and directories, because the server ignores the request mask and unconditionally applies both ACL operations. This can remove security controls the client did not intend to modify, potentially exposing protected data or weakening access restrictions. Any device running an NFS server with the NFSACL extension enabled is affected.

Affectedfs/nfsd/nfs2acl.c (nfsd NFSACL v2)

Vulnerability analysis

The NFS server's NFSACL v2 SETACL handler unconditionally applies both access and default ACL operations regardless of which ACL types the client actually requested via the request mask. When a mask bit is absent the corresponding ACL pointer is NULL, and the VFS treats a NULL ACL as a deletion request, so a client sending a partial SETACL silently strips the unrequested ACL type. The fix gates each ACL modification on its corresponding mask bit and initializes the return value to success, so a request that omits a mask bit leaves that ACL untouched. The attack surface is network-based: any NFS client that can reach the server's export and has permission to modify ACLs on the target file or directory can trigger this behavior.

03

BranchIntroducedFixed inPatch commit
5.102.6.135.10.273d00a2f81ba7c
5.152.6.135.15.224760e7a4f92f5
6.12.6.136.1.19154ff9c81d6b7
6.122.6.136.12.109e41d173d9dc7
6.182.6.136.18.50f951b22dbeec
6.62.6.136.6.1578e4422b05f41
7.22.6.137.2.437eea38e7898
mainline2.6.137.3a3a7e20ed66d
cip/6.122.6.136.12.111-cip32e41d173d9dc7

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.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip116)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)